4,360 experience to go until the next level!
In case you were wondering, you earn Laracasts experience when you:
Earned once you have completed your first Laracasts lesson.
Earned once you have earned your first 1000 experience points.
Earned when you have been with Laracasts for 1 year.
Earned when you have been with Laracasts for 2 years.
Earned when you have been with Laracasts for 3 years.
Earned when you have been with Laracasts for 4 years.
Earned when you have been with Laracasts for 5 years.
Earned when at least one Laracasts series has been fully completed.
Earned after your first post on the Laracasts forum.
Earned once 100 Laracasts lessons have been completed.
Earned once you receive your first "Best Reply" award on the Laracasts forum.
Earned if you are a paying Laracasts subscriber.
Earned if you have a lifetime subscription to Laracasts.
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.
Earned once you have achieved 500 forum replies.
Earned once your experience points passes 100,000.
Earned once your experience points hits 10,000.
Earned once 1000 Laracasts lessons have been completed.
Earned once your "Best Reply" award count is 100 or more.
Earned once your experience points passes 1 million.
Earned once your experience points ranks in the top 50 of all Laracasts users.
Started a new Conversation How Does Envoyer Work?
I wanted to understand and learn how envoyer works under the hood. The reason I am looking at this is because I want to build a tool which will run various tasks on server ex. Run a script on server, monitor jobs, run jobs on server etc.
Now from what I have seen many SaaS apps do is generate an SSH key to be put on server and then connect to it. From there on I have no idea how on click of button we can run a script on server and also monitor the status/output of the command/script running on server.
Any explanation/links to resources appreciated.
Thanks, Prasad Chinwal
Replied to Shibboleth Authentication
@konrms Yes, absolutely correct. All you have to do for production server is install the package and edit
config/shibboleth.php file as per your need.
Example: You may want to map your server variables with your laravel application User model.
'user' => [ // fillable user model attribute => server variable 'name' => 'your_name_variable_from_server', 'email' => 'your_email_variable_from_server', 'first_name' => 'your_firstname_variable_from_server', 'last_name' => 'your_lastname_variable_from_server', 'custom_field' => 'custom variable', ],
These are the fields I have specified in my users migration. The existing users in your organization would be greeted with your shib login page and on successful login they should be redirected to the redirect route specified in your
'authenticated' => '/',
@tomasosho Nope it wont execute. The SendMailable class needs only 1 argument in the constructor and you passed 2 when you called it.
Also, what do you mean by send email automatically. Emails are usually result after some action is taken and you need to inform user.
If you mean automate the process of sending emails then you can set up a Laravel Job
To be frank I don't know how it improved performance but I think that is the whole point of Let the framework do the work for you. Although I would love to know how. LOL!
Also we ended up refactoring our code a lot to use collection methods. I think even that helped a lot.
Replied to Authentication Question
Replied to How To Connect And Login As An Oracle User
Replied to Should I Docker-ize For Production?
@nunodonato Good question. I am running multiple apps ( > 10 ). Each app has its own container with apache and laravel app.
I have my mysql container on separate server just because I wanted to keep my database on separate server.
Always keep database related stuff on separate container. So that if you have to rebuild container for some reason you don't loose data. If you do want to keep it together you can look into docker volumes.
My personal experience is that my containers were getting heavier with mysql installed together with apache and other dependencies.
Digital Ocean has a nice article on setting this up. Article
@nurge So just to be clear you are sending the data to populate both dropdown from controller?
Or do you need to fetch data from database based on the selected value of 1st dropdown?
I see. Did you configure your gmail account to allow for less secure apps ?
Replied to Store Array
@fajar I think mysql 8.0 and up you can declare a JSON column and store the data as json.
Else you can try making the column text in migration instead of unsignedInteger and save data as json. Then on model explicitly cast the column as json.
@pandiyan Can you share your mail server config? Hiding sensitive information of course
Should look something like this
MAIL_DRIVER=smtp MAIL_HOST=smtp.googlemail.com MAIL_PORT=465 MAIL_USERNAME=ENTER_YOUR_EMAIL_ADDRESS(GMAIL) MAIL_PASSWORD=ENTER_YOUR_GMAIL_PASSWORD MAIL_ENCRYPTION=ssl
Awarded Best Reply on Custom Form Validation
Replied to Custom Form Validation
You can store the data in session by
$request->session()->put('key', 'value'); or by using global helper
You can retrieve session values by
$value = $request->session()->get('key'); or by using global helper
$value = session('key', 'default');
More on sessions in Laravel Docs
@jinsonjose I assume you could put the session variable in AppServiceProvider?
Replied to Unknown Error When Logging Out
@jesse_orange_newable Could you possibly replace these lines
Not sure if this would help. But worth a shot.
Replied to Laravel Fully Dynamic Catalog Filter