loom

loom

Member Since 4 Years Ago

Experience Points
11,110
Total
Experience

3,890 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
104
Lessons
Completed
Best Reply Awards
0
Best Reply
Awards
  • start your engines Created with Sketch.

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • first-thousand Created with Sketch.

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • 1-year Created with Sketch.

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • 2-years Created with Sketch.

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • 3-years Created with Sketch.

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • 4-years Created with Sketch.

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • 5-years Created with Sketch.

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • school-in-session Created with Sketch.

    School In Session

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

  • welcome-newcomer Created with Sketch.

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • full-time-student Created with Sketch.

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • pay-it-forward Created with Sketch.

    Pay It Forward

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

  • subscriber Created with Sketch.

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • lifer Created with Sketch.

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • evangelist Created with Sketch.

    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 Created with Sketch.

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • lara-veteran Created with Sketch.

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • 10k-strong Created with Sketch.

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • lara-master Created with Sketch.

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • laracasts-tutor Created with Sketch.

    Laracasts Tutor

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

  • laracasts-sensei Created with Sketch.

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • top-50 Created with Sketch.

    Top 50

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

Level 3
11,110 XP
Sep
20
5 days ago
Activity icon

Awarded Best Reply on Cannot Save Base64 Image Data From TinyMCE

Was missing the purifier.php config file.

@laracoft That's what was doing the modification.

Activity icon

Replied to Cannot Save Base64 Image Data From TinyMCE

Was missing the purifier.php config file.

@laracoft That's what was doing the modification.

Sep
19
6 days ago
Activity icon

Started a new Conversation Cannot Save Base64 Image Data From TinyMCE

Upgrading a Laravel 5.1 project to Laravel 6. In the current version images are allowed to be pasted into TinyMCE and stored with the text.

Using same logic in updated code. The data gets to the server and can be logged but when adding it to an instance of new static() the image is ignored.

tinymce.init({ 
...
 paste_data_images:true,
 images_upload_handler: function (blobInfo, success, failure) {
	success('data:' + blobInfo.blob().type + ';base64,' + blobInfo.base64());
},
...
public static function fromRequest($request)
{
	Log::debug($request->input('comment'));  // Displays the image data

	$comment = new static();
	$comment->comment = $request->input('comment');
	
	Log::debug($comment->comment);  // Displays no image data, does display any text
	
	return $comment;
}

What could cause this? Am I missing a php or JavaScript deprecation?

Laravel 6 TinyMCE 4.7.10

Sep
15
1 week ago
Activity icon

Replied to Cannot Create SqlServer Datetime2 Column Without Milliseconds Ie: Datetime2(0)

So Laravel 6+ still have to run an alter column after migrations on created_at and updated_at to get datetime2 without precision.

I know, it's strange but this particular app is old and highly used and there is still a TSQL option to have datetime2 with 0 precision.

Column with datetime will crash the app.

Sep
10
2 weeks ago
Activity icon

Awarded Best Reply on Trying To Understand API Policies And Updating Between Laravel Versions

Looks like adding 'bindings' to the API middleware in api.php may have resolved this.

Sep
08
2 weeks ago
Activity icon

Replied to Trying To Understand API Policies And Updating Between Laravel Versions

Looks like adding 'bindings' to the API middleware in api.php may have resolved this.

Sep
07
2 weeks ago
Activity icon

Replied to Trying To Understand API Policies And Updating Between Laravel Versions

An issue that I have found concerning the Event model is that:

Laravel 6:

When using WEB authentication $this->route('event') returns an Event model. When using API authentication $this->route('event') returns an Event Id.

Laravel 5.1: Both return an Event Model.

Both routes have 'event' as an id. Web and API controllers are using the same trait calling $this->route('event').

Why would this be?

Sep
06
2 weeks ago
Activity icon

Started a new Conversation Trying To Understand API Policies And Updating Between Laravel Versions

I'm upgrading a Laravel 5.1 project written 5 years ago by another developer to Laravel 6. There are some API authentication issues and I don't fully understand Policies. There is the following for an PUT update:

public function authorize()
{
	return $this->user()->can('update', [$this->route('event'), 
$this->request ]);
}

I'm having trouble finding clear documentation but am I correct in understanding that can() will be calling the update() method in the associated policy? Here is the policy:

public function update(User $user, Event $event, ParameterBag $requestParams)
{
	return ! $event->eventType->isLocked() &&
		$this->eventModificationAuthorized($user,$event,$requestParams) &&
		$this->subModificationAuthorized($user,$requestParams);
}

Initial problem is that the policy never gets called. Get an immediate 403 Forbidden. If I pass the the Event model instance as the second arg in can() it will get to the policy where there are some other issues down the rabbit hole. It seems that the in the Laravel 5.1 version the $event is a model instance through route model binding while it is not happening in Laravel 6.

Any insight would be great.

Sep
05
2 weeks ago
Activity icon

Replied to APIs And JWT 403 On PUT

Ok, moving on. Something strange with the policies apparently.

What exactly is called by the user()->can() method? Any documentation I've read for three days treats this as magic. I'm assuming it's the policy method matched by the the first arg. But, any logs I place there are not being reached.

Sep
01
3 weeks ago
Activity icon

Started a new Conversation APIs And JWT 403 On PUT

I have been tasked with upgrading a Laravel 5.1 application to Laravel 6. About 95 % complete except there is a set of APIs using JWT. While testing we have noticed that we can:

  1. Be issued a token via GET.
  2. Make GET requests.
  3. Make POST requests.

PUT requests return a 403 Forbidden. Tests are run from scripts and Postman.

What is generally the cause of failure for a PUT.

Aug
29
3 weeks ago
Activity icon

Replied to Laravel Redirect To /js/bootstrap.min.js.map After Login

I'm noticing this when I have a fallback() in my routes. I've found some other complaints about this but no solutions.