laravel-5.2

Change service config parameters at runtime

时光怂恿深爱的人放手 提交于 2020-06-27 06:41:17
问题 I'm using mailgun to send mails thought Laravel 5.2. It configured on config/services.php like that: 'mailgun' => [ 'domain' => env('mailgun_domain','mydomain.com'), 'secret' => env('mailgin_secret','my-secret-key-132152345423') ], But, I need change that settings in run time, before call Mail::send, to use the correct service parameters. It must be changed many times during runtime. I cannot configure it by .env file , because all data will be get from database, where the user setups the

Laravel log file based on date

允我心安 提交于 2020-06-25 09:13:42
问题 By default laravel saves the log file to a single log file called laravel.log located in /storage/logs/laravel.log my question is how can i get a new log file everyday and store the log files like /storage/logs/laravel-2016-02-23.log for the current date, so i need everyday a new log file saved to /storage/logs/ i think we can do that by extending the default Illuminate\Foundation\Bootstrap\ConfigureLogging bootstraper class but i'm not sure how i can do that i would really appreciate it if

Laravel log file based on date

拈花ヽ惹草 提交于 2020-06-25 09:13:15
问题 By default laravel saves the log file to a single log file called laravel.log located in /storage/logs/laravel.log my question is how can i get a new log file everyday and store the log files like /storage/logs/laravel-2016-02-23.log for the current date, so i need everyday a new log file saved to /storage/logs/ i think we can do that by extending the default Illuminate\Foundation\Bootstrap\ConfigureLogging bootstraper class but i'm not sure how i can do that i would really appreciate it if

Dingo API - How to add version number in url?

主宰稳场 提交于 2020-05-29 08:45:17
问题 I have just installed Dingo and it appear to work with the following URL: http://website.dev/api/test http://website.dev/api/hello $api = app('Dingo\Api\Routing\Router'); $api->version('v1', function ($api) { $api->get('test', function () { return 'Test'; }); $api->get('hello', function () { return 'Hello'; }); }); I would like version v1 to be included in the URL, how do I get this to work? When I try: http://website.dev/api/v1/test I get error: { "message": "404 Not Found", "status_code":

Dingo API - How to add version number in url?

守給你的承諾、 提交于 2020-05-29 08:44:09
问题 I have just installed Dingo and it appear to work with the following URL: http://website.dev/api/test http://website.dev/api/hello $api = app('Dingo\Api\Routing\Router'); $api->version('v1', function ($api) { $api->get('test', function () { return 'Test'; }); $api->get('hello', function () { return 'Hello'; }); }); I would like version v1 to be included in the URL, how do I get this to work? When I try: http://website.dev/api/v1/test I get error: { "message": "404 Not Found", "status_code":

Dingo API - How to add version number in url?

五迷三道 提交于 2020-05-29 08:43:44
问题 I have just installed Dingo and it appear to work with the following URL: http://website.dev/api/test http://website.dev/api/hello $api = app('Dingo\Api\Routing\Router'); $api->version('v1', function ($api) { $api->get('test', function () { return 'Test'; }); $api->get('hello', function () { return 'Hello'; }); }); I would like version v1 to be included in the URL, how do I get this to work? When I try: http://website.dev/api/v1/test I get error: { "message": "404 Not Found", "status_code":

After session destroy or close browser tab or close browser execute logout using Laravel 5.2

拟墨画扇 提交于 2020-05-28 11:56:11
问题 In my project I am using session destroy method which very simple way in Laravel 5.2 . /* |-------------------------------------------------------------------------- | Session Lifetime |-------------------------------------------------------------------------- | | Here you may specify the number of minutes that you wish the session | to be allowed to remain idle before it expires. If you want them | to immediately expire on the browser closing, set that option. | */ 'lifetime' => 10, 'expire

Single sign on using SimpleSamlPhp wrapper on Laravel

孤人 提交于 2020-05-27 07:00:31
问题 Implementing single sign on in my laravel application. I have decided to use this plugin https://github.com/aacotroneo/laravel-saml2 which is basically a wrapper on famous SimpleSamlPhp. I downloaded the code via composer and as per given information Remember that you don't need to implement those routes, but you'll need to add them to your IDP configuration. For example, if you use simplesamlphp, add the following to /metadata/sp-remote.php $metadata['http://laravel_url/saml/metadata'] =

Single sign on using SimpleSamlPhp wrapper on Laravel

筅森魡賤 提交于 2020-05-27 07:00:08
问题 Implementing single sign on in my laravel application. I have decided to use this plugin https://github.com/aacotroneo/laravel-saml2 which is basically a wrapper on famous SimpleSamlPhp. I downloaded the code via composer and as per given information Remember that you don't need to implement those routes, but you'll need to add them to your IDP configuration. For example, if you use simplesamlphp, add the following to /metadata/sp-remote.php $metadata['http://laravel_url/saml/metadata'] =

How to redirect confirmation page after submitting form in Laravel?

ぐ巨炮叔叔 提交于 2020-05-15 03:46:25
问题 I have a form .This action is: <form action="{{url('career/save/{id}')}}" method="POST" enctype="multipart/form-data"> Route: Route::group(['prefix' => 'career'], function () { Route::get('apply', ['as' => 'addApplicant', 'uses' => 'ApplicantController@create']); Route::post('save', ['as' => 'saveApplicant', 'uses' => 'ApplicantController@store']); Route::get('confirmation/{id}', ['as' => 'confirmationMsg', 'uses' => 'ApplicantController@show']); }); Controller: public function store(Request