Member Since 4 Years Ago

Experience Points 373,490
Experience Level 50

0 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 131
Best Reply Awards 385
Best Reply
  • start-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-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-token Created with Sketch.


    Earned if you are a paying Laracasts subscriber.

  • lifer-token Created with Sketch.


    Earned if you have a lifetime subscription to Laracasts.

  • lara-evanghelist 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.

16 Sep
10 hours ago

jlrdw left a reply on What Type Of Website Is Evil.com?

How about a "contact us".

jlrdw left a reply on Input Hidden Grabs All The Data

In the top link I gave I showed dealing with just individual check boxes. To me that is the easiest way to deal with them instead of an array.

Forget the Hidden and deal with the check boxes that have a value passed. if a checkbox isn't checked nothing is passed.

15 Sep
1 day ago

jlrdw left a reply on Javascript/JQuery/Ajax Code In Laravel Controller

Write yes, but I wouldn't.

Edit: Was on mobile.

That is for frontend, the view. But you can store strings of code in variables and pass to view.

jlrdw left a reply on Input Hidden Grabs All The Data

if you only want checked don't use hidden input just use the array.

jlrdw left a reply on Input Hidden Grabs All The Data

That's why I showed the links I did, you will have to loop over the request and get the ones checked, Or value of 1.

jlrdw left a reply on Authenticate Without Using Database

See https://laracasts.com/discuss/channels/laravel/custom-authentication-laravel-6



The problem is if bcrypt wasn't used.

If it is bcrypt you could get information from json and use the username and password to login.

I'd have all update on new login to a bcrypt password, just me.

jlrdw left a reply on Best Laravel Eloquent Tutorial For Searching

LIKE generally works. But there's elasticsearch, I never needed that deep.

In image, I have by date, description, amount, so combo of like, =, etc.

Also there has been past post of filtering eloquent results, I don't have links.

jlrdw left a reply on Laravel

Not sure what was not created. If under (public_html, www, hddocs) you shouldn't need a "link" they just work.

On Linux php artisan storage: link should work.

An alternative on Windows, I've never needed, but once.

If your storage is above htdocs (main laravel) then you could use header to serve image. I do this at times if I for some images.

Something like:

$basedir = 'your directoru here/storage/app/upload';

$imagedir = $_GET['dir'];
$image = $_GET['img'];

$file = $basedir.'/'.$imagedir.'/'.$image;
$fallback = $basedir.'/fallback.gif';
$size = filesize($file); // File size
$length = $size;
$ext = array_pop(explode ('.', $file));
$allowed['gif'] = 'image/gif';
$allowed['png'] = 'image/png';
$allowed['jpg'] = 'image/jpeg';
$allowed['jpeg'] = 'image/jpeg';

if(file_exists($file) && $ext != '' && isset($allowed[strToLower($ext)])) {
    $type = $allowed[strToLower($ext)];
} else {
    $file = $fallback;
    $type = 'image/gif';

header("Accept-Ranges: bytes");
header("Cache-Control: public");
header('Content-Type: application/octet-stream');
header("Content-Transfer-Encoding: binary");
header("Content-Length: " . $length);
header('Content-Disposition: inline; filename="' . $image . '"');
header("Last-Modified: " . date('r', filemtime($file)));


And a simple:

<img src="<?= 'http://localhost/laravel60/pthru.php?dir=imgdogs&img=' .  $row->dogpic; ?>" alt="" class="image">

In example, from local host,

Main laravel is at:


public laravel is at:


Using a proper folder setup:


Which works on shared or a wamp local. If Using D.O., AWS, etc then they have examples of proper setup.

jlrdw left a reply on What Type Of Website Is Evil.com?

First I hope you check sites before opening with https://www.virustotal.com/gui/home/url

Second, if it's a safe site, why not check their "about" section. Why ask here.

jlrdw left a reply on SaaS How To Write A Clean Subscription System With Specific Functionality?

I guess you decided not to use laravel Spark. Did you at least look over spark.

jlrdw left a reply on How To Start A New Discussion Here In Laracast With Picture?

Put the image on imgur and use img tag as normal here.

On imgur right click the image and see view image to get the URL for the image tag.

jlrdw left a reply on Stop Users Access Your Pages Directly From Url

Query scopes and Auth::user()->id;

If someone changes an ID in the URL it won't work if the query is already calling for a certain ID only.

How a query is written goes hand-in-hand with authorization.

You really have to think RBAC through.

14 Sep
2 days ago

jlrdw left a reply on A Bug In Gate Facade Functionality Or I'm Getting Things Wrong?

Not 100% sure what you are referring to, But sounds like you are logging in and trying to see your data: Have you looked into query scopes.

Admin can see all, but user can see theirs and not someone else's.


Basically uses the Auth::user()->id working hand in hand with authorization.

Sorry if I misunderstood the question.

jlrdw left a reply on Which Pagination Approach Is More Performant?

Get all records from db table (no sorting, no limits)
  Put in to a Collection and sort by user input
 Put Collection in to a Paginator and return paginated records based on user input

Proper pagination only queries x number at a time. Do you think google would retrieve 125,000,000 records, put in a collection and paginate, no.

You should study up on how pagination works and Pagination using MySQL LIMIT, OFFSET.

With that you are only getting and querying 10 per page if that is the number you asked for.

In fact on large data, skipping index is used, because LIMIT, OFFSET isn't efficient.

But really study this and the math behind it. 1). Is never the way.

jlrdw left a reply on Making Sense Of Password Reset

Each time I follow where it's going it leads me somewhere else

So true, nature of the framework, but it's all normal php in the background Taylor uses to make laravel work.

A lot also comes from symfony components, like:


Normal php.

jlrdw left a reply on Check The Dates Before Planning

It seems this app is about booking. To get more ideas you can look at some of these:



There are more. But just to get more ideas of how others book.

jlrdw left a reply on Check The Dates Before Planning

@snapey seance is a meeting.

jlrdw left a reply on E-commerce Checkout Process

Your payment service will have instructions and an API to go by.

You definitely do not store credit card information the service has that.

If you need something like this and do not know what you are doing maybe talk to a consultant.

Like me for example when I had to do a bookkeeping application I consulted with a certified public accountant and learned exactly what was needed.

Do not go at something like this without at least 2 years experience under a professional developer.

jlrdw left a reply on Change Date Time Format

Mysql would not return 2019, 9, 13, 9, 31, 5 for a date or a datetime. So how is it actually stored, what type field.

Looks like you need to play around with php string functions to get that in a format that is correct, then and only then can you do something like:

$tmpdate = new \DateTime($yourfixedstringofthedate);

$mydate = $tmpdate->format('Y-m-d H:i:s');


$tmpdate = new \DateTime($yourfixedstringofthedate);

$mydate =  date_format($tmpdate,"Y/m/d H:i:s");  // whatever format

jlrdw left a reply on How To Make Background Automatic Zoomin And Change The Picture

Just trying to help you, it would really benefit you if you would take some JavaScript tutorials, and css.

In fact Jeffrey has some free css tutorials.

jlrdw left a reply on Invalid Argument Supplied For Foreach() (View:

What is >first()-> is that something new.

I think that's an error.

13 Sep
3 days ago

jlrdw left a reply on Uninstall Laravel From Godaddy.com

Just delete those files.

Backup all first just in case.

jlrdw left a reply on How To Become Web Development Master?

Ditto take a long four year apprenticeship program under a master.

Don't attempt nothing without Master telling you.

jlrdw left a reply on Laravel 6 Which Is The Best Alternate Method Of Laravel Pluck??

In the query just select the fields you need.

jlrdw left a reply on LaravelCollection/Html Form Select Difference

You should practice select option first without:

$user->roles->pluck('id')->toArray() as $item  .....

Just get used of a select option first.

jlrdw left a reply on Redirect Based On Refferer

You probably have to play around with headers. See if (search) if curl helps with this.

jlrdw left a reply on Redirect Based On Refferer

mysite.com/instagram-landing That's not ugly.

Link to this post


jlrdw left a reply on Insert In Database Number Of Seats


And later there's a what's new in 6.0 and a 6.0 from scratch series they chose not to put the link to the series in the documentation now.

By the way welcome to the Forum.

jlrdw left a reply on Insert In Database Number Of Seats

Well you need this in a form and post the form and go from there.

Jeffrey has a free video from scratch series. But it's in English, if you could find someone to view it with you and explain he teaches this basic stuff real good.

jlrdw left a reply on Logout Does Not Work

It's just a dropdown, just program it it.

<div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdown">
                                    <a class="dropdown-item" href="{{ route('logout') }}"
                                        {{ __('Logout') }}

                                    <form id="logout-form" action="{{ route('logout') }}" method="POST" style="display: none;">

@snapey 5.8 had logout show in a dropdown.

Wow didn't show good, but that's a copy paste of it.

I wish Taylor would reinstate the basic CSS scaffold at least that came with Authentication. but I even tried a pull request and an issue.

jlrdw left a reply on Insert In Database Number Of Seats

Just trying to help when I say, if not using blade at least template with php instead of echo.

<td class="comment"><?php echo $row->comments; ?></td>
// or short tag

But what are you trying to do after the select.

jlrdw left a reply on Public/js And Css Folder Sudennly Disappeared

Mix node and all that stuff has nothing to do with that.

Like I said I just downloaded bootstrap and renamed app CSS and I was good to go in 2 minutes.

But where is calling what? what's your folder structure, troubleshoot your way through this, it's not that hard. Right click, view source, etc

Obviously CSS files have to be placed at a certain place to be properly used.


You don't want them compiled? You will use the full heavy versions of them?

No bootstrap has minified also for download. So does jquery.

@mego See these:


Has images https://laracasts.com/discuss/channels/laravel/next-issue-fonts-and-images-arent-visible

On a shared host you need correct folder structure.

jlrdw left a reply on Insert In Database Number Of Seats

Actually there's examples in the documentation, of insert, create, save etc.

12 Sep
4 days ago

jlrdw left a reply on Pagination Links() Method Doesn't Exist

Give @lightyagami best answer, he got it first, I was typing same time, but stepped away, thanks

jlrdw left a reply on Laravel Vapor With MongoDB

Why aren't or why dont you use Amazon DocumentDB.

jlrdw left a reply on How To Express SubQuery With MIN() Without Raw SQL?

Then why don't you try examples in the chapter: https://laravel.com/docs/6.0/queries

But I prefer eloquent queries, supposed to be the same, but seems to work better.

But only this part is raw

->selectRaw('count(dc_pets.petid) as countOfPets')

A derived needs raw.

jlrdw left a reply on Pagination Links() Method Doesn't Exist

as $ad not $ads as $ads

jlrdw left a reply on Laravel Vapor

Go here and read:


Vapor isn't the app, your laravel application is. Vapor is for server management.

So if you can do xyz without vapor, you can do xyz with vapor. But you should really read those docs.

And I am sorry I referred you out of the forum, I've been scolded for this.

jlrdw left a reply on Convert All Fields X In Table To Integer

Your cast is correct. Remember php isn't like c# where you "have to" cast.

jlrdw left a reply on Php Artisan Serve

If it doesn't work just enter composer then hit enter, make sure composer is working.

Composer alone should display composer commands.

During install of composer, you should have told it where php is, maybe reinstall composer.

jlrdw left a reply on Php Artisan Serve

At command line in your project folder, copy and paste this:

composer install

And hit enter

jlrdw left a reply on Php Artisan Serve

In the folder do you see


jlrdw left a reply on Php Artisan Serve

In your project folder, is the vendor folder there.

jlrdw left a reply on Php Artisan Serve

Then like @lucaros97 said Run composer install