kwebble

kwebble

Member Since 3 Years Ago

Experience Points 630
Experience Level 1

4,370 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 0
Lessons
Completed
Best Reply Awards 0
Best Reply
Awards
  • 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.

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • lifer-token Created with Sketch.

    Lifer

    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.

03 Mar
2 years ago

kwebble left a reply on How To Define A Route Based On Form Data From Request

@fabricecw in this project, which is a separate package, routes are defined in a router class. I created a similar method as you describe in it to invoke the matching method of a controller.

I just expected Laravel to be able to define routes based on all parts of a HTTP request.

kwebble started a new conversation How To Define A Route Based On Form Data From Request

For a form with multiple steps I want to POST each step to the same URL. A form field can identify the specific step in the process.

Examples on routing in Laravel only show the option of using a method and URL, but not the data and HTTP headers from the request.

My question, how do you define a route in Laravel based on the value a form field?

Notes:

  • This is for Laravel 5.2.
  • Using a single page application where steps are handled in the browser and posted in a single request is not an option because of existing code.
13 Jul
3 years ago

kwebble left a reply on Fix Access Rights For Folders Laravel Writes To During Installation

On Windows, the platform I prefer, this is not an issue. But on McApple it generates an error in the browser.

I hoped there would be a way the system takes care of this automatically. Then I would not have to figure out which folders are involved and how to change their permissions through OSX.

A completely different question is why store temporary files in the folder with the software in the first place. Most systems have a default place for tmp files and it's available to PHP with sys_get_temp_dir().

kwebble started a new conversation Fix Access Rights For Folders Laravel Writes To During Installation

After checking out a Laravel 5.2 application, running composer install and starting the web server (Mamp) on osx, accessing the site produces an error. The cause is that the access rights of the storage folder do not allow writing log files.

It's possible to change this by hand, but this is something that needs to be done every time you start with a fresh code.

So I'm looking for the standard way to set the access rights correct for the default folders where Laravel needs write access? Perhaps a setting in Laravel, a Composer script or artisan command.

07 Jul
3 years ago

kwebble left a reply on Extend Queue Execution Time

@ParadoxMedia As I understand this restarts a process if stopped.

The question is about a single job that was started by the queue system and got interrupted at 60 seconds during execution. How to prevent that interruption?

kwebble left a reply on Extend Queue Execution Time

I know it's an old discussion, but I'm curious if a solution was found.

01 Jun
3 years ago

kwebble left a reply on What Is The Standard Way To Declare The Application Name?

@Swaz no, not the namespace, the name you would show to a user.

kwebble left a reply on What Is The Standard Way To Declare The Application Name?

Thanks for the detailed answer. As I understand it this defines a custom property name in config/app.php.

I expected Laravel to have a standard way to declare the application name. Does that exist, or is a custom property required?

kwebble started a new conversation What Is The Standard Way To Declare The Application Name?

To be able to show the name of the application to users, that piece of information has to be stored somewhere. What is the standard way in Laravel to set the application name?

This is about the human readable form, not the PHP namespace.

18 May
3 years ago

kwebble left a reply on Unknown Guest() Method Invoked On Custom Authentication Provider

Forget this question, I've changed the code to not use Laravel authentication.

kwebble started a new conversation Unknown Guest() Method Invoked On Custom Authentication Provider

I have made a custom authentication provider that implements the UserProvider interface. This provider is configured in auth.php:

'users' => [
    'driver' => 'fatfree'
]

And I've added a custom guard:

'fatfree' => [
    'driver' => 'fatfree'
]

And finally I have configured a group of routes to use the middleware with the new guard:

Route::group(['middleware' => ['web', 'auth:fatfree']], function () { ... });

Now when a route is requested the framework invokes MyAuthProvider::guest(). I haven't added this method on the provider since it's not described in the interface. Is there some configuration that causes this method to be called? And how can that be turned off?

kwebble started a new conversation Tip: Keep Query And Filter Selected When Searching

When searching this site the search query and selected filter are lost when the form is submitted. To quickly add/remove search parameters it would helpful if:

  • the search field shows the input
  • the selected filter is retained
17 May
3 years ago

kwebble left a reply on Can Laravel Manage Business Transactions In A Unit Of Work?

If Laravel, as a framework that supports SQL databases, comes with a standard transaction manager I will first try to use that.

But if there's no configurable transaction manager available that can be attached to all the routes automatically exists, I will probably use DB to create something custom.

I guess it would be a bit more elaborate the just DB. I would like a way to configure the routes that should be managed and being able to signal a rollback without having to throw an exception.

kwebble started a new conversation Can Laravel Manage Business Transactions In A Unit Of Work?

Is there a standard implementation in Laravel 5.2 to persist all changes on objects managed by Eloquent to the database in a single atomic call?

Each request should start a business transaction. After all required actions are performed the changes should be committed, or rolled back if an error occurred during processing.

It does not need to support two-phase commit.

29 Apr
3 years ago

kwebble left a reply on How To Get The Folder For Temporary Files

Sure, files in the system temp folder are managed by the OS.

But because using temporary files is a common feature I hoped Laravel has a common, standardized, solution. Since the folder has to be writable at run-time by the web server, it needs special attention when deploying. Laravel could have something to make sure rights are set correctly.

As it looks now I have to come up with my own solution.

kwebble left a reply on How To Get The Folder For Temporary Files

@ohffs : yes, I will use sys_get_temp_dir() if Laravel does not provide a standardized folder.

kwebble left a reply on How To Get The Folder For Temporary Files

I can create my own, but isn't there a default folder for temporary files in Laravel?

kwebble started a new conversation How To Get The Folder For Temporary Files

My application needs to store temporary files.

What is the common folder Laravel uses for temporary files? And is there a system call to retrieve that folder in my code?

26 Apr
3 years ago

kwebble left a reply on Can You Create A Route Directly To A Class Method?

A new controller can go in app/http/Controllers. But when I saw an example of the action parameter with a string I thought it could work without an extra controller. The only thing the controller would do is create an instance of the class I use and invoke the method.

Some background: this is to migrate an existing application to Laravel. The first step is to embed it completely in a Laravel application with as little changes as possible. When that is working the new version can be used.

The next steps are then to migrate functions one by one from the old version to the new.

@bobbybouwmann: for my own namespace I expect a mapping in RouteServiceProvider::map is required. By the way, that map method looks a bit hacky to me, requiring a different file directly inside a class method...

kwebble started a new conversation Can You Create A Route Directly To A Class Method?

As a Laravel beginner I could not find how to create a route to a specific method of a class. The documentation mention the use of a string, but does explain what the format of the parameter. I tried something like this:

Route::match(['get', 'post'], '/someroute', '\my\namespace\Class@method');

The result is an error:

Call to undefined method my\namespace\Class::getMiddleware()

For now I created a closure that instantiates the class and calls the method, but it would be nice if Laravel can do that. Can anyone describe how?

25 Apr
3 years ago

kwebble left a reply on Keep Default Values For Enviroment Variables Out Of App.php

Yes, but that is fine. To force having a complete configuration I'd rather fail on a null then continue with an incorrect value.

kwebble started a new conversation Keep Default Values For Enviroment Variables Out Of App.php

In app.php environment variables are used to set configurations like 'environment', 'url' etc. To force defining these settings in the .env file I'm considering removing the default values from the calls to env(). Can I do this with no further side-effects or will this cause problems elsewhere in the code?