This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| class OrderController extends Controller | |
| { | |
| public function index() | |
| { | |
| $orders = Order::with(['customer', 'items.product']) | |
| ->withCount(['items as items_count']) | |
| ->get(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| interface HasTitle | |
| { | |
| public function getTitle(): string; | |
| } | |
| // The usage of abstract class is to force the order related information. | |
| // It can be questioned in the sense that, do we really want to enfore | |
| // the orders to confirm to a super type BaseOrder? In my thinking, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Laravel developer task | |
| The entire task assignment should take no longer than 4 hours to complete. It's fine to leave some rough edges. Just try to showcase your skills to the best of your ability. | |
| ## Background / Intro | |
| Subscriber management is one of the the key features in MailerLite. There are a few different ways for subscribers to reach your mailing list: | |
| * Adding subscribers directly through our iOS or web applications | |
| * Web forms and a landing pages |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import SwiftUI | |
| // MARK: Multiple sheets cases. | |
| enum SheetTest: Identifiable { | |
| var id: UUID { | |
| return UUID() | |
| } | |
| case sheet1(value: Int) | |
| var value: Int { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import SwiftUI | |
| // MARK: Multiple sheets cases. | |
| enum SheetTest: Identifiable { | |
| var id: UUID { | |
| return UUID() | |
| } | |
| case sheet1(value: Int) | |
| var value: Int { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import SwiftUI | |
| struct SheetView: View { | |
| @State private var showSheet: Bool = false | |
| var body: some View { | |
| Button { | |
| showSheet.toggle() | |
| } label: { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SET ansi_nulls ON | |
| go | |
| SET ansi_nulls ON | |
| go | |
| -- ============================================= | |
| -- Author: Shyam Mishra |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import UIKit | |
| import Combine | |
| import MapKit | |
| class VehiclesBrowserViewController: UIViewController { | |
| // MARK:- Properties | |
| // subscription to hold on to the publisher. | |
| var subscription: Set<AnyCancellable> = [] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // Section.h | |
| // ObjectiveCApp | |
| // | |
| // Created by Ravi Bastola on 11/1/20. | |
| // | |
| #import <Foundation/Foundation.h> | |
| NS_ASSUME_NONNULL_BEGIN |
NewerOlder