lionslair left a reply on Retrieve Existing Personal Access Token From User Model.
@RAMJITHAP - Did you find a way to do that?
From memory I think that package has some helpers for formatting. You still have to do the display yourself but it gives you options to help. Eg I think it returns a level so if you are in a dropdown you can use the level to repeat a "-" N times.
I also think it returned the result ordered so you only need to loop over the result set and output or return as needed. It's about 18 months since I actually hands on used the package.
I use envoy on forge to handle my deployments.
I have a task that runs
php artisan horizon:terminate php artisan queue:restart
However I often get the issue where I do not get the forge confirmation in slack that the deployment is finished from Forge however I do get the one I push from my Envoy.blade.php file.
Often the case is if I manually restart the queue for the site in Forge then run the deployment again then all works and I get the Forge slack notification that the deployment was successful.
This makes me think its a queue issues.
Because I run both the horizon terminate and the queue:restart command am i doubling up or introducing an issue which causes the queue not to correctly restart?
I think it's because your relationship doesn't exist. You update the email on the user object but the teacher is not related at the moment because your using the email as the relationship.
Is the teachers table another type of users table? Why its your relationship not using the default
eg user => id teacher => user_id
Is this for use like a nested set? Example. A menu where you have a hierarchy.
I have used this package before when using tree like structures. Menus or categories etc.
lionslair left a reply on Phpunit Test Not Running With Multiple Database Setup
@scottzirkel what does your connect and disconnect method look like in your Tenant class?
I am getting similar. I have a table alerts and alertable within it. ion my log im getting
SQLSTATE[42S02]: Base table or view not found: 1146 Table 'voyager.voy_alertables' doesn't exist (SQL: insert into
alertable_type) values (96, 80248, App\AccountBandwidth))
However my alerts table has the row minus a
I am trying to find a way to validate a two date and time fields
The fields stored in the datebase are
However in the form submission the input is split into
start_datetime d F Y start_time H:i A
end_datetime d F Y end_time H:i A
What I am trying to achieve in the Request validation is that the end time is not before the start time and vise versa.
However I have tried every permutation I can think of
'on_sale_datetime' => 'required|date_format:"d F Y h:i A"|before:' . str_replace(',', '', $this->off_sale_datetime) . ' '. $this->off_sale_time, 'off_sale_datetime' => 'required|date_format:"d F Y h:i A"|after:' . str_replace(',', '', $this->on_sale_datetime) . ' '. $this->on_sale_time,
This fails because the submitted fields start_datetime is the format of d F Y and not d F Y h:i A
I have tried
$this->merge([ 'combined_start_datetime' => str_replace(',', '', $this->start_datetime) . ' '. $this->start_time, 'combined_end_datetime' => str_replace(',', '', $this->end_datetime) . ' '. $this->end_time, ]);
And added the fields combined_start_datetime and combined_end_datetime to guarded in the model. However then the validation is skipped.
If I try
$this->merge([ 'start_datetime' => str_replace(',', '', $this->start_datetime) . ' '. $this->start_time, 'end_datetime' => str_replace(',', '', $this->end_datetime) . ' '. $this->end_time, ]);
Then on failure the value of start_datetime back in the form is d F Y h:i A not d F Y
Is there any solution to validating these input for what I am trying to achieve?