It would be an issue with tailwind.
Make sure to publish the views, as it uses tailwind, if the views are not published it may emit some of the classes needed to render if you use purgeCSS.
also make sure your livewire styles, and livewire scripts blade directives are in the layouts you want to display data tables on.
I wouldn't save the audio file to the database, I would upload to s3 or your preferred storage and save the name to the database and retrieve the file with laravel storage facade when you need to do.something with it.
My one caveat to this is that It doesn't play particularly well with livewire. as LW will return the values direct from the database, and not via the model.
So binding directly to the model properties doesn't work.
Doesnt answer ops question but this functionality is super useful. I created a trait that uses this and adds an $encyptable attribute to your model where you can list the fields you want to encrypt as an array.
I like the Migrate functions where it will compare current to existing.
It would be good to have this with a --force flag, so it wont run on production unless you really want it to, like the default Migrations :)
USing it currently, Its great. Also lets you run your project in a docker container if you need specific php extensions,/config or third party command line programs for processing.
Deployment is simple with a CI/CD Like github or Bitbucket Pielines.
Costs, can be a bit pricey for databases. but they are secure, and fast so its worth it.
Ok thanks i figured it out. Can you use them both? Like you call the mailable class inside the notification class inside the toMail function. Is it possible. And what's your preference do you use mailable class or notifications
Yeah you just make a new Mailable Class
in the toMail function put.
return (new YourMailerClass)->subject('Whatever')
Or you can use the default MailMessage and return a view
return (new MailMessage)
->subject('Your Subject')
->view('emails.notificationview', ['user' => $notifiable])
Mailables allow more customisation. That's pretty much the only reason to use them. The standard Mail for notifications can be edited as well if you publish them but you have to write your content inside the Notification class which doesn't let you do much with formatting.
If you are sending an invite, it might be useful to make an invites relationship for the users so you can track who has signed up etc.
Create a model
php artisan make:model invites --migration
in your controller.$invite = $user->invites()->create(['email' => email@domain.com,'user_id' => $user->id)
$invite->Notify(new InviteEmail::class);
Then make a notifiable that sends the email.
You can do signed routes that will let your system know which invite created a sign up and let your original user know that the person they invited signed up, or give them a referal bonus etc.
Code above not tested, probably wont work I am hungover its new years day! Good luck!
Don't let the downvotes bother you. I rolled my own dash with Livewire, Livewire datatables(awesome btw) Chartisan and built it around windmill tailwind dashboard.
If you want to do anything remotely custom the boilerplate admin dashboards take more customizing than just rolling your own.
I've used Nova, Backpack, voyager, and even attempted the laravel/admin-lte package but they all fell short.
It definatly addresses ALL the issues the OP has posted.
Ohhhh I am excited as I am the first to use bitbucket pipelines and vapor!
Develop branch deploys to an aws light sail instance with ssh deploy basically pulling the last commit before doing composer update and npm build stuff.
Master branch deploys to staging for UAC and a manual step to deploy to production.
Have you tried removing this line?
.options({
processCssUrls: false
})
That might be causing the errors
What does your webpack.mix file look like?
and what version of mix are you using?
It would be an issue with tailwind.
Make sure to publish the views, as it uses tailwind, if the views are not published it may emit some of the classes needed to render if you use purgeCSS.
also make sure your livewire styles, and livewire scripts blade directives are in the layouts you want to display data tables on.
I would recommend people that don't want the complex Jetstream bits to use this ui preset.
https://github.com/laravel-frontend-presets/tall
I would recommend people that don't want the complex Jetstream bits to use this ui preset.
https://github.com/laravel-frontend-presets/tall
I would recommend people that don't want the complex Jetstream bits to use this ui preset.
https://github.com/laravel-frontend-presets/tall
It uses chartsJs. It just prepares a json response that chartsjs understands.
I do like that betterprogramming.pub basically says, to be a better programmer, use other peoples programming :D
Might point you in the right direction.
https://github.com/muaz-khan/WebRTC-Experiment/tree/master/RecordRTC/RecordRTC-to-PHP
I wouldn't save the audio file to the database, I would upload to s3 or your preferred storage and save the name to the database and retrieve the file with laravel storage facade when you need to do.something with it.
My one caveat to this is that It doesn't play particularly well with livewire. as LW will return the values direct from the database, and not via the model.
So binding directly to the model properties doesn't work.
Doesnt answer ops question but this functionality is super useful. I created a trait that uses this and adds an $encyptable attribute to your model where you can list the fields you want to encrypt as an array.
https://mariadb.com/kb/en/json-data-type/
Maria DB stores json as long text.
You can use the $casts method on your model to make sure data is stored as json. But it is simply encoded as long text in the database.
Yeah I think most people would prefer it if it protected us from accidently dropping a column.
This is Really neat!
I like the Migrate functions where it will compare current to existing.
It would be good to have this with a --force flag, so it wont run on production unless you really want it to, like the default Migrations :)
why?Just google livewire datatables, the package exists already
Though the delete and confirmation stuff is pretty neat.
Your mount method is the wrong way round... should be $this->user = $user
Or am I missing something?
Is rank in the fillable property on the user model?
You may want to find the checkbox to the user as well.
Wire:model="uer.rank_id"
And your update rank method just called $this->user->save()
USing it currently, Its great. Also lets you run your project in a docker container if you need specific php extensions,/config or third party command line programs for processing.
Deployment is simple with a CI/CD Like github or Bitbucket Pielines.
Costs, can be a bit pricey for databases. but they are secure, and fast so its worth it.
Yeah you just make a new Mailable Class
in the toMail function put.
return (new YourMailerClass)->subject('Whatever')
Or you can use the default MailMessage and return a view
return (new MailMessage) ->subject('Your Subject') ->view('emails.notificationview', ['user' => $notifiable])
Mailables allow more customisation. That's pretty much the only reason to use them. The standard Mail for notifications can be edited as well if you publish them but you have to write your content inside the Notification class which doesn't let you do much with formatting.
If you are sending an invite, it might be useful to make an invites relationship for the users so you can track who has signed up etc.
Create a model
php artisan make:model invites --migration
in your controller.$invite = $user->invites()->create(['email' => email@domain.com,'user_id' => $user->id)
$invite->Notify(new InviteEmail::class);
Then make a notifiable that sends the email.
You can do signed routes that will let your system know which invite created a sign up and let your original user know that the person they invited signed up, or give them a referal bonus etc.
Code above not tested, probably wont work I am hungover its new years day! Good luck!
Don't let the downvotes bother you. I rolled my own dash with Livewire, Livewire datatables(awesome btw) Chartisan and built it around windmill tailwind dashboard.
If you want to do anything remotely custom the boilerplate admin dashboards take more customizing than just rolling your own.
I've used Nova, Backpack, voyager, and even attempted the laravel/admin-lte package but they all fell short.
It definatly addresses ALL the issues the OP has posted.
How does this run with vapor?
Drunk and its boxing day. Figure out my typos yourselves
You may want to release the job back if you made a mistake in code (syntax error etc) and need to send it back again once you fix the bug.
Artisan queue:retry all Or php artisan pretty {job-id} will push failed jobs back into the queue
Ohhhh I am excited as I am the first to use bitbucket pipelines and vapor!
Develop branch deploys to an aws light sail instance with ssh deploy basically pulling the last commit before doing composer update and npm build stuff.
Master branch deploys to staging for UAC and a manual step to deploy to production.
It's pretty neat.