jlrdw

Member Since 5 Years Ago

Experience Points
670,350
Total
Experience

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
276
Lessons
Completed
Best Reply Awards
761
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.

  • Community Pillar

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

Level 50
670,350 XP
Jan
25
19 hours ago
Activity icon

Replied to Get Json Values

how get data from here

You have it in the success: function(data) { .....

Just loop, or do whatever you need to do with your data there.

Activity icon

Replied to DBF External Database. How Correctly Import

Using odbc import them into mySQL database. That's my suggestion.

Take care of all the importing on local. That is unless the external data has to stay dbf, but I'd consider doing everything in MySQL.

Activity icon

Replied to Laravel Inertia Post Data

this.$inertia.post('/post/edit/' + data.id   // is get request

A post goes like: quote

    return {
      form: {
        first_name: null,
        last_name: null,
        email: null,
      },

unquote

Just example from their site.

Activity icon

Replied to Unable To Access The Image From Storage Path

Is the image there, for image it's file:

$file = Request::file('your_mage');     // I use facade

And is the image in another subfolder, you may need:

<img src="{{asset('/storage/your_subfolder/'.$brand->logo)}}" alt="Logo" height="70px" width="50px">

Edit: If you haven't already read this, see:

https://laravel.com/docs/8.x/filesystem#file-uploads

Activity icon

Replied to Security Measures For Vue, Axios, Laravel.

No matter what stack is used, you need:

  • Authentication (ensures a login)
  • Authorization (what can the logged in user do or not do)

When authorization is not properly implemented there are large security holes.

Whether you use laravel or custom authorization / RBAC, it has to be correct.

Activity icon

Replied to Laravel Inertia Post Data

A redirect is a get route, see:

https://inertiajs.com/redirects

Activity icon

Replied to Laravel Inertia Post Data

When posting it's in the request object it's not a parameter, a parameter is normally a get request.

Activity icon

Replied to Videos: Save For Later, Or Watch Later, In Laracasts ?

You could always bookmark certain videos, and name the bookmark a name you recognize.

I have done similar, you can have folders under bookmarks.

Activity icon

Replied to Running JetStream With LiveWire. Class 'Inertia\Inertia' Not Found

You're wanting inertia and Livewire? Those are two separate stacks, each would have install instructions.

Probably have a look at the jetstream Docs as well.

Activity icon

Awarded Best Reply on Laravel Forge Database Connections

If that's all you need, try one database at a time with a error thrown in, perhaps a wrong password on purpose, or similar. Then you should see which connection Just errored.

Definitely have good names for everything that makes sense.

Activity icon

Replied to Image Not Found Or Type Unknown Barryvdh\dompdf Laravel

Using public_path didn't work.

Activity icon

Replied to Image Not Found Or Type Unknown Barryvdh\dompdf Laravel

Try

<img src="{{ public_path('whatever_path') }}" />
Jan
24
1 day ago
Activity icon

Replied to Image Not Found Or Type Unknown Barryvdh\dompdf Laravel

You said it was working, so have you changed anything or upgraded updated something.

Activity icon

Replied to Retrieve The Last Entered ID

There are articles on releasing the connection when using last insert I'd.

I would hope OP would research all aspects of this and make their own good decision on how to handle their application.

@marcolino922 definitely learn your database management well if using MySQL or whichever database you are using study it very well.

Activity icon

Replied to Attempt To Read Property "make" On Array

Filter collection $cars

It's best if you filter (where clause) in the query.

That is just a suggestion.

Activity icon

Replied to No 'Access-Control-Allow-Origin' Header Is Present On The Requested Resource

Look at CORS settings in config.

Edit: There's a link in there also with more information.

Activity icon

Replied to Method App\Http\Requests\MarketRequest::move Does Not Exist.

Move is included in symfony class. And laravel uses that class. And then symfony winds up using the regular PHP move.

Activity icon

Replied to Argument 1 Passed Response::setContent() Must Be Of The Type String Or Null

What is returned when you view in the network tab. Or sent might be a better word.

Edit: especially in Ajax I am constantly using the network tab to see what's happening when troubleshooting code.

Activity icon

Replied to Base Table Or View Not Found , 'laravel.products' Doesn't Exist

Go over your model, view, controller, migration, and check for correct capitalization.

Something is off.

Activity icon

Replied to Base Table Or View Not Found , 'laravel.products' Doesn't Exist

But looks like you are calling

return view('products.index');
Activity icon

Replied to Base Table Or View Not Found , 'laravel.products' Doesn't Exist

What about the view, is it index.blade.php?

Activity icon

Replied to Retrieve The Last Entered ID

@snapey no it's per client

Quote

The ID that was generated is maintained in the server on a per-connection basis. This means that the value returned by the function to a given client is the first AUTO_INCREMENT value generated for most recent statement affecting an AUTO_INCREMENT column by that client. This value cannot be affected by other clients, even if they generate AUTO_INCREMENT values of their own. This behavior ensures that each client can retrieve its own ID without concern for the activity of other clients, and without the need for locks or transactions.

Unquote

I actually learned at this by watching a video of @jeffreyway been a little while I forget which video.

Activity icon

Replied to Laravel Forge Database Connections

If that's all you need, try one database at a time with a error thrown in, perhaps a wrong password on purpose, or similar. Then you should see which connection Just errored.

Definitely have good names for everything that makes sense.

Activity icon

Replied to Laravel Forge Database Connections

Check https://forge.laravel.com/docs/1.0/servers/monitoring.html#monitoring

Connections can be tricky, they vary often, after the request lifecycle a connection is disposed of.

Activity icon

Replied to Retrieve The Last Entered ID

If Mysql look at using SELECT LAST_INSERT_ID();

Read for yourself here:

https://dev.mysql.com/doc/refman/8.0/en/information-functions.html#function_last-insert-id

Activity icon

Replied to Laravel Forge Database Connections

Nova has metrics.

preferably through the dashboard

What dashboard.

Activity icon

Replied to How Can I Write A Test For Facebook Auth In Laravel?

To me, it seems that Taylor makes sure Laravel Socialite is already tested, and the same for Facebook.

Ask, does this really need testing if real World works.

Just a thought.

Activity icon

Replied to Eloquent Join

Look over the various relation types in the chapter, especially look at the has many through.

Kind of hard from the description to know exactly what you are after.

I would also recommend watching the laravel from scratch free video series. A lot of that code is also free on GitHub.

Activity icon

Replied to Tips For Production/Development Local Project.

Just to note, when I said have production and development the same I meant folder structure, it makes it easier.

Before going to production read the laravel documentation chapter on deployment.

The very best of luck with your project.

Activity icon

Awarded Best Reply on Tips For Production/Development Local Project.

  • Always backup before any migration
  • Have development setup same as Production
  • Git would probably the way to go
  • Consider Laravel Forge.
  • Consider host like digital ocean, they have excellent how to guides.
  • Consider viewing the Github series on Laracasts.
Activity icon

Replied to Tips For Production/Development Local Project.

  • Always backup before any migration
  • Have development setup same as Production
  • Git would probably the way to go
  • Consider Laravel Forge.
  • Consider host like digital ocean, they have excellent how to guides.
  • Consider viewing the Github series on Laracasts.
Activity icon

Replied to Mobile Version Of The Onlineshop

@davy_yg if it's not an API, then just make it mobile friendly with media queries.

Bootstrap and tailwind help handle this. But writing custom media queries isn't hard.

Also jquery has a jquery mobile.

The ways to achieve what you want are numerous.

If an API consider using Laravel Sanctum.

Activity icon

Replied to Post And Tags Relationship Best Away ?

In the from scratch free series, @jeffreyway demos a many to many with tags.

The way he handles it would probably be the best way, and check the code may be on Github.

Jan
23
2 days ago
Activity icon

Replied to Drag And Drop Form Builder Like Gravity Forms From WordPress

Just my opinion, but I would strongly consider sticking to the keyboard.

Activity icon

Replied to Xdebug Alternative?

I have actually found that rather than debugging, using a good ide and the network tab is all I really need.

You will know pretty quickly if your requests and responses are what's expected relying on that Network tab.

Activity icon

Awarded Best Reply on Add Stripe To Laravel

I would recommend at least browsing the cashier documentation and watching two or three videos and then make a good choice. But, correct cashier is not required.

Also I would recommend if not using cashier, browse over a couple of other payment gateways.

I have use PayPal in the past, but it's been a while now.

Also Github has some laravel packages that assist with PayPal , but back when I used it I didn't use no packages.

Activity icon

Replied to Deploy Laravel On Cpanel --help -- Assistance

Either have main laravel out of public_html, see this from snapey

http://novate.co.uk/deploy-laravel-5-on-shared-hosting-from-heart-internet/

Or if all in public_html make sure you point to public as the document root.

Just make sure the env file can't be read from browser.

Edit: also read https://laravel.com/docs/8.x/deployment

Activity icon

Replied to Appending Query String Values

@warpig you shouldn't need to have tag in query string, it's a parameter.


somesite.com/choice/blue?page=2&something=5&name=bob

// here blue is parameter
// after question mark (?) is query string.

Don't collect just paginate a query, more efficient.

Activity icon

Replied to Add Stripe To Laravel

I would recommend at least browsing the cashier documentation and watching two or three videos and then make a good choice. But, correct cashier is not required.

Also I would recommend if not using cashier, browse over a couple of other payment gateways.

I have use PayPal in the past, but it's been a while now.

Also Github has some laravel packages that assist with PayPal , but back when I used it I didn't use no packages.

Activity icon

Replied to Having A Bookmark Feature On Laracasts Responses

You could also do similar to what I do, certain common repeat questions that come up, I bookmark some good answers to help others. Certain authentication questions, questions on old data and, some checkbox type questions, etc.

Activity icon

Replied to Add Stripe To Laravel

Start with the stripe documentation, and probably the cashier documentation.

It's recommended not to integrate in an existing application but all be brand new.

https://laravel.com/docs/8.x/billing

Activity icon

Replied to Deploy Laravel On Cpanel --help -- Assistance

Usually with FTP. Of course import your mySQL database. The database part would be separate.

Jan
22
3 days ago
Activity icon

Replied to Can't Deploy To Forge. Composer Errors.

Just as a suggestion, perhaps go over to digitalocean site, and see if there's anything in their documentation or guides which would help explain the problems.

But again if you also had PHP 8 in development, I am curious why you didn't get any warnings.

Also you can check issues on GitHub for forge.

Community Pillar

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