laravel-5.5

How can I solve “laravel/horizon v1.1.0 requires ext-pcntl * -> the requested PHP extension pcntl is missing from your system”?

半腔热情 提交于 2019-12-02 19:05:30
When I run composer install on command promp, there exist error like this : Problem 1 - Installation request for laravel/horizon v1.1.0 -> satisfiable by laravel/horizon[v1.1.0]. - laravel/horizon v1.1.0 requires ext-pcntl * -> the requested PHP extension pcntl is missing from your system. To enable extensions, verify that they are enabled in your .ini files: - C:\xampp-7.1\php\php.ini You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode. How can I solve this error? Run composer with the --ignore-platform-reqs option and specify pcntl and posix composer

Redirect if request authorization is failed in Laravel 5.5

心已入冬 提交于 2019-12-02 18:39:08
问题 I am trying to redirect request if authorization is failed for it. I have following code: class ValidateRequest extends Request{ public function authorize(){ // some logic here... return false; } public function rules(){ /* ... */} public function failedAuthorization() { return redirect('safepage'); } } By default I am redirected to the 403 error page, but I would like to specify some specific route. I noticed that method failedAuthorization() is run, but redirect() method does not work...

Is there a way to get the scheduled task as an array from a controller?

夙愿已清 提交于 2019-12-02 16:45:06
问题 I would like to get the scheduled tasks list from a controller. Some packages, articles and even StackOverflow explain how to display it from a command, but I did not found how to do it without a command. My goal is to get an array of scheduled task with their date and description. Is there a way to get the scheduled task as an array (or an object list, or anything that can be easily handled) from a controller? 回答1: Here is a way to get all scheduled tasks: app()->make(\Illuminate\Contracts

Trigger VBA-Macros Application in Laravel

丶灬走出姿态 提交于 2019-12-02 14:29:31
问题 I have an excel file that has macro enabled VBA. It has a button that will trigger the VBA for my excel. I was just wondering if it is available to trigger a VBA in Laravel app. I have like an upload button in laravel but when i click it, it will first trigger the button in excel that triggers the VBA then it will read the upload excel function. Do you think it is possible? And how? 回答1: Well as long as using Internet Explorer you can use JavaScript on your button to call a macro: <input type

Laravel : how can i validate reset_password table token and request token

假如想象 提交于 2019-12-02 12:02:14
I just reset password in my app.So i check user availability with email,phone if user is available store token in reset_password table and return token in response. But when i check reset_password table token and response token both are different.? How can i check and validate request token and stored token. note: Tested in postman $api->post('confirmuser', 'App\\Api\\V1\\Controllers\\Auth\\ForgotPasswordController@confirmUser'); Here is my controller code with email and phone i validate, if user data is available on user table insert token and email to reset_password table and return in

Laravel 5.5 The page has expired due to inactivity token is present

一世执手 提交于 2019-12-02 10:28:23
I just deployed my laravel app on shared hosting with php 7.2. App is working fine on DigitalOcean and on my local Homestead. But when hosting on shared hosting with php7.2 /opt/alt/php72/usr/bin/php -v PHP 7.2.5 (cli) (built: May 2 2018 05:43:40) ( NTS ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies with the ionCube PHP Loader (enabled) + Intrusion Protection from ioncube24.com (unconfigured) v10.1.0, Copyright (c) 2002-2017, by ionCube Ltd. with Zend OPcache v7.2.5, Copyright (c) 1999-2018, by Zend Technologies Every form has token as you

Trigger VBA-Macros Application in Laravel

跟風遠走 提交于 2019-12-02 10:02:34
I have an excel file that has macro enabled VBA. It has a button that will trigger the VBA for my excel. I was just wondering if it is available to trigger a VBA in Laravel app. I have like an upload button in laravel but when i click it, it will first trigger the button in excel that triggers the VBA then it will read the upload excel function. Do you think it is possible? And how? Well as long as using Internet Explorer you can use JavaScript on your button to call a macro: <input type="button" value="Run My Macro" onclick="RunMacro("C:\MyFile.xlsm", "ThisIsMyMacro");"> And using this

Is there a way to get the scheduled task as an array from a controller?

我的梦境 提交于 2019-12-02 08:56:28
I would like to get the scheduled tasks list from a controller. Some packages , articles and even StackOverflow explain how to display it from a command, but I did not found how to do it without a command. My goal is to get an array of scheduled task with their date and description. Is there a way to get the scheduled task as an array (or an object list, or anything that can be easily handled) from a controller? Here is a way to get all scheduled tasks: app()->make(\Illuminate\Contracts\Console\Kernel::class); $schedule = app()->make(\Illuminate\Console\Scheduling\Schedule::class); $events =

Laravel 5.5 The page has expired due to inactivity error while sending form

こ雲淡風輕ζ 提交于 2019-12-02 08:10:53
问题 I'am using laravel 5.5 and it gives me that "The page has expired due to inactivity. Please refresh and try again." This is awkward because I never encounter this error. Same codes but different laravel version.. My form; {!! Form::open(['url'=>'admin/save-social']) !!} {{ Form::label('pinterest', 'Pinterest;', ['class' => 'control-label']) }} {{ Form::text('pinterest', null, ['class' => 'form-control'])}} {{ Form::label('linkedn', 'Linkedn;', ['class' => 'control-label'])}} {{ Form::text(

Laravel 5.5 The page has expired due to inactivity error while sending form

折月煮酒 提交于 2019-12-02 03:56:52
I'am using laravel 5.5 and it gives me that "The page has expired due to inactivity. Please refresh and try again." This is awkward because I never encounter this error. Same codes but different laravel version.. My form; {!! Form::open(['url'=>'admin/save-social']) !!} {{ Form::label('pinterest', 'Pinterest;', ['class' => 'control-label']) }} {{ Form::text('pinterest', null, ['class' => 'form-control'])}} {{ Form::label('linkedn', 'Linkedn;', ['class' => 'control-label'])}} {{ Form::text('linkedn', null, ['class' => 'form-control'])}} {{ Form::label('facebook', 'Facebook;', ['class' =>