@if(!$valid || isset($show_all))
@include('helpers.form_control', [
'type' => 'radio',
'name' => 'php_bin_path',
'class' => '',
'label' => trans('messages.find_php_bin_path'),
'value' => $php_bin_path,
'options' => \Acelle\Library\Tool::phpPathsSelectOptions($php_paths),
'rules' => [['php_bin_path' => 'required']]
])
@include('helpers.form_control', [
'type' => 'text',
'name' => 'php_bin_path_value',
'class' => '',
'placeholder' => 'Example: /usr/local/bin/php',
'label' => trans('messages.enter_php_bin_path'),
'value' => $php_bin_path_value,
'rules' => [['php_bin_path_value' => 'required']]
])
@endif
@if(!exec_enabled())
{{ trans('messages.please_enable_php_exec_for_cronjob_check') }}
@endif
@if($valid || (isset($show_all) && !$errors->has('php_bin_path_invalid')))
* * * * * {!! $php_bin_path_value !!} -q {{ base_path() }}/artisan schedule:run 2>&1
@endif