marktimbol

marktimbol

Member Since 3 Years Ago

Experience Points 50,245
Experience Level 11

4,755 experience to go until the next level!

In case you were wondering, you earn Laracasts experience when you:

  • Complete a lesson — 100pts
  • Create a forum thread — 50pts
  • Reply to a thread — 10pts
  • Leave a reply that is liked — 50pts
  • Receive a "Best Reply" award — 500pts
Lessons Completed 574
Lessons
Completed
Best Reply Awards 4
Best Reply
Awards
  • Start Your Engines Achievement

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • First Thousand Achievement

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • One Year Member Achievement

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • Two Year Member Achievement

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • Three Year Member Achievement

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • Four Year Member Achievement

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • Five Year Member Achievement

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • School In Session Achievement

    School In Session

    Earned when at least one Laracasts series has been fully completed.

  • Welcome To The Community Achievement

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • Full Time Learner Achievement

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • Pay It Forward Achievement

    Pay It Forward

    Earned once you receive your first "Best Reply" award on the Laracasts forum.

  • Subscriber Achievement

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • Lifer Achievement

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • Laracasts Evangelist Achievement

    Laracasts Evangelist

    Earned if you share a link to Laracasts on social media. Please email [email protected] with your username and post URL to be awarded this badge.

  • Chatty Cathy Achievement

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • Laracasts Veteran Achievement

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • Ten Thousand Strong Achievement

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • Laracasts Master Achievement

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • Laracasts Tutor Achievement

    Laracasts Tutor

    Earned once your "Best Reply" award count is 100 or more.

  • Laracasts Sensei Achievement

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • Top 50 Achievement

    Top 50

    Earned once your experience points ranks in the top 50 of all Laracasts users.

02 Oct
8 months ago

marktimbol left a reply on Laravel Mailable: Remove File After Send

You tried

Storage::delete(public_path('test.csv');

?

marktimbol left a reply on React.js With Laravel Relationship

Might be the one of the client doesn't have a company?

08 Oct
2 years ago

marktimbol left a reply on Prevent Activity From Being Stored During Testing


use Illuminate\Foundation\Testing\DatabaseMigrations;

class ExampleTest extends TestCase
{
    use DatabaseMigrations;
    
    //
}
04 May
3 years ago

marktimbol left a reply on Repository Pattern Still Worth?

I'm using interface specifically for the Payment Gateway. My client before always changed her mind on which payment gateway they're gonna use. Initially I've implemented Stripe then they decided to changed it to 2Checkout. It took only less amount of time to switch between these payment gateways.

02 May
3 years ago

marktimbol left a reply on Get The Only Posts Which Don't Have Replies

return App\Post::with(['replies' => function ($query) {
    $query->where('type', '<>', 'a');
}])->get();
30 Apr
3 years ago

marktimbol left a reply on Model Is Null When Passed To Events

Glad it worked for you. Thank you!

marktimbol left a reply on Model Is Null When Passed To Events

@tylernathanreed Really? I didn't know that. I'm always saving the model first before passing it into the Event. When he says that the model is returning null, I thought that the model needs to be saved first. Anyways, @coderego what happens when you put $match->save()? Is it still returning null or no?

marktimbol left a reply on Model Is Null When Passed To Events

Because you need to save it the match.

        $match = new Match();

        $match->blackPlayer = $request->blackPlayer;
        $match->blackScore = $request->blackScore;

        $match->yellowPlayer = $request->yellowPlayer;
        $match->yellowScore = $request->yellowScore;

    $match->save();
26 Apr
3 years ago

marktimbol left a reply on Model Is Null When Passed To Events

From MatchWasPlayed event,


public $match;

public function __construct(Match $match)
{
    $this->match = $match;
}

Then, from the handle method of your listener,


    public function handle(MatchWasPlayed $event)
    {
        dd($event->match);
    }

10 Apr
3 years ago

marktimbol left a reply on How To Enable User To Login By Username Or Email

That's already available out of the box. Just change the email field into username field.

    public function loginUsername()
    {
        return property_exists($this, 'username') ? $this->username : 'email';
    }
05 Apr
3 years ago

marktimbol left a reply on Injecting A Repository Into Another Repository Class

        foreach ($models as $model) {
            $this->app->bind(
                "App\Contracts\\{$model}RepositoryInterface",
                "App\Repositories\\{$model}Repository"
            );
        }
04 Apr
3 years ago

marktimbol left a reply on How Can I Do Something Like This?

Route::group(['middleware' => 'auth'], function() {
    Route::get('/entreprise', function() {
        return view('register.start');
    });
});
03 Apr
3 years ago
01 Apr
3 years ago

marktimbol left a reply on Using The Auth Facade During Testing

factory(App\Models\User::class)->create();

05 Mar
3 years ago

marktimbol left a reply on Event Must Be An Instance Of ...... Given

'App\Events\TestEvent' => [ 'App\Listeners\EventListener@onRegister', ],

marktimbol left a reply on Event Must Be An Instance Of ...... Given

event( new TestEvent($args) );

01 Mar
3 years ago

marktimbol left a reply on Laravel 5.2 Upgrade Problems

Change to 5.2.* first then run composer update.

16 Feb
3 years ago

marktimbol left a reply on ModelFactory Problem

Hmm, try factory(App\Flyer::class)->create() and make sure your model factory setup setup is correct.

10 Feb
3 years ago

marktimbol left a reply on Class Log Does Not Exist

Try to remove the space on your .env variable values then give it another try. It works for me.

16 Jan
3 years ago

marktimbol started a new conversation Help With Amazon S3

Hi everyone,

So I started to use S3 on my app. I can successfully upload an image to my S3 bucket. Now I want to display the image on the page. I know Laravel provides this Storage::get($file) method but it gives only the raw string content of the file (from the docs).

How can I get the url of the image to be able to display it on the page?

Thank you!

06 Jan
3 years ago

marktimbol left a reply on Class Log Does Not Exist

Removing space character from environment variable value fixed my problem.

02 Jan
3 years ago

marktimbol left a reply on Send Sms From Own Mobile

I tried Twilio before, I just used the number that they provided me. Not sure if you can change it or no.

22 Nov
3 years ago

marktimbol left a reply on Shopping Cart Pay Later Function

Please disregard this :)

I just come up with other solution. Thanks

marktimbol started a new conversation Shopping Cart Pay Later Function

Hi everyone,

So I implemented shopping cart on my project. Now the client wants to have a pay later function for specific tour package because they need to check first the availability of the tour package before they will charge the user.

Any thoughts how to accomplish this?

Thank you!

04 Nov
3 years ago

marktimbol left a reply on Laravel Shopping Cart?

Very cool! This is what I want. Thank you so much!

03 Nov
3 years ago

marktimbol left a reply on Laravel Shopping Cart?

Yeah like 1x child 2x adult.

I'm currently using that package. It was great actually, I can add a custom options on my cart. However, on the source code, it is computing only the quantity & price. I want to add the the child option on the computation. I think I will just modify the source code.

Thanks.

marktimbol left a reply on Page Specific Scripts

I'm adding a @yield('header_styles') before the opening body tag and @yield('footer_scripts') before the closing body tag.

Then, if the specific page needs additional stylesheets or scripts, I will just put @section('header_styles') and @section('footer_scripts'). You get the idea.

marktimbol started a new conversation Laravel Shopping Cart?

Hi,

Who knows a shopping cart package wherein I can add an adult and child option just like hotel reservation?

Most of the shopping cart package that I tried doesn't have this option.

Thank you!

28 Oct
3 years ago

marktimbol started a new conversation Laravel + 2Checkout

Hi,

Is there anyone here who already integrate 2Checkout with Laravel?

Thank you in advance!