jred_lewis jred_lewis
1
For a personal Laravel project, I'm starting by making an admin panel before the end user view. For at least one model, I'm allowing soft deletes to be used. I have two opinion-based questions to that end: For routing should I reuse the included PU...
wivaku wivaku
3
I want to seed / programmatically add users and teams / roles. Documentation explains how to add users and teams using UI, but it was not super clear how to add them programmatically. This is what I have now. Is that the recommended / acceptable appr...
gustav1105 gustav1105
3
There are several issues with this package. It will break how things works if you use dependencies from the nova package library, It will not allow you any customisation, it will make your developers life misery....
PatrickDaniel PatrickDaniel
1
When trying to watch older videos on Laracasts, a lot of the time I end up spending an inordinate amount of time trying to bridge the gap between the versions of the tools that are used in the videos and the versions that I have locally. Because of...
jlrdw replied
Solved
neomuckel neomuckel
7
hello and a happy new year. i got a new macbook with m1 cpu. can you tell me the best solution for work on it with laravel ?...
Medala Medala
2
I made this svg from inkscape and it has a lot of padding on its Y axis, I can't seem to find out why this happens. Any Tip? <div class="w-full z-0"> <svg class="fill-current w-full bg-orange-500" xmlns=&quo...
Medala replied
Solved
warpig warpig
1
In my project, can I use a set of ENV variables and then when deploying to Heroku, have another set? LIke the ones you configure for PGSQL? What happens once I clone the project back to Heroku?...
Theraloss Theraloss
1
Hello, something I didn't really "solved" is the convention for Controllers for relationships data. With a quick example, you have Users and Posts and you want to display all the posts of the given user. What will be your controller? UserCo...
Detrol Detrol
0
So I have a portfolio which is a one-page site, where I found it very tedious to use the regular locale function for translations, because I won't be needing to update the content very often, and there is a lot of text. Therefore I wanted to do it in...
ravenshill ravenshill
1
#I added the function below to my .zshrc, it assumes you are in the base directory of a laravel project. laratail() { tail -f $(ls -td storage/logs/*.log | head -1) }...
erron erron
2
I am planning to build a water billing web application. I have been learning Laravel and have been working on some personal projects, but still don't have enough proper knowledge how to manage a project from planning to production. Do you guys have a...
jlrdw replied
Solved
erron erron
1
Does Laravel have a pre-built software solution such as ASP.Net Zero for its ASP.Net based applications? I want to focus more on the business logic and with it, I can save more time if common application requirements are already provided....
gitwithravish gitwithravish
0
I want to organise locale files stored in resources/lang/en for different api versions and within that for different modules/categories. Any good practices or tips?...
kurucu kurucu
6
So my answer to multitenancy is that each tenant will literally get their own instance (I fully expect them to request this level of segregation anyway, and it makes a lot of things simpler). So there'll be a client app that allows them to sign up an...
gitwithravish gitwithravish
0
I am running multiple console commands in production. Some commands including jobs processor dies somehow. I want to restart that process if it dies. What could be a clean way to do this?...
bertmi01 bertmi01
2
So I'm a self-taught dev who has been learning through Laracasts and Udemy mostly. I likely have a lot of gaps in what best practices are, and may not know what to search for with regard to this, so apologies in advance. I think I need some help with...
Snapey replied
Solved
chaudigv chaudigv
1
125 tips divided into 14 sections Just came across a useful tweet and thought of sharing it here. Povilas Korop and Marceau Ka have gathered awesome Laravel tips and tricks for all artisans. LaravelDaily/laravel-tips...
grgbikash05 grgbikash05
1
Doc file is rendering in html css code....
vildanhakanaj vildanhakanaj
2
Hello everyone I have a question regarding best practices when it comes to controllers. I have a Meeting model that a user can create when they book a meeting, also an admin can create a meeting for someone in the system. I have a MettingsController...
DNABeast DNABeast
1
CKfinder grabs some config info from a .php file and I needed to be able to set a session variable to show I was logged in. Problem is that this file was called with javascript so didn't touch on Laravel. I needed a way to set a 'logged in' variable...
qwertynik qwertynik
2
Hello, A script to parse and load user data into the system leverages queue to process user's images. The queue for the application is hosted by AWS SQS. However, there is an unusually high number of requests on the queue. From the stats, came to kno...
janthoegersen janthoegersen
2
Hi all, I have a file repository model which has a one to many relation with a file model (mysql). The file model has besides various attributes also a path attribute which points to an actual file on disk. I'm struggling with how to build the logic...
sr57 replied
Solved
claydog claydog
1
Hi Peeps, Is there such a thing as x-if AND x-else in Alpine.js? <template x-if="func()"> Do stuff if truthy </template> <template x-else"> Do the falsey stuff </template> If there isn't I'd have to call fun...
davorminchorov davorminchorov
7
Hey, Which are all of the General Software Design And Development Principles which we programmers should follow in order to create quality software? Some of the principles on top of my head are: SOLID, Package Principles, DRY, GRASP (object-orient...
warpig warpig
19
So, whenever im trying to update something I get this message: BadMethodCallException Method Illuminate\Database\Eloquent\Collection::update does not exist. Im trying to update resources and here goes the main one, do I still need to request a valida...
emersonunes emersonunes
2
I'm looking foward to create projects on laravel via composer but instead of creating a fresh install I want to install the "backoffice repository" that i'm developing for my company. So, I created a Laravel 8.0 project and installed the or...
aurawindsurfing aurawindsurfing
5
One of the top Laracasts discussion board members @bobbybouwmann is going to release Laravel Secrets book today. I think it will be definitely worth the read! https://laravelsecrets.com/...
uniqueginun uniqueginun
14
Seniors: I have a controller method that has some complexity and it's doing several tasks at once: <?php namespace App\Http\Controllers; use Illuminate\Http\Request; class RegisterationController extends Controller { public function store(R...
binggle binggle
2
Hi. I want to discriminate users even without login . Maybe IP and browser would be used. Can I get any information more about this case ?...
krie9er krie9er
5
Hi all, I am searching for my a proper Charting Framework, I feel like using chart.js, but I am curious about your favorite frameworks. I use in my application, currently, tailwind and alpine. Is there any Charting framework, which fits good to the...
theharisshah theharisshah
1
Hi, Most of my laravel projects are running at 5.8. I am planning to upgrade them to the newer laravel version. The only issue I am facing is some packages are not compatible with a newer version of laravel. Is there any guide or any reference or jus...
msslgomez msslgomez
3
What would you do to handle products and when these products have a sale? Should I add a field to Product to indicate a sale or should Sales be a different model and use it with like a one to many relationship? One Sale has Many Products One Product...
c4ost c4ost
2
I want to insert or update multiple tasks in my todos website. I can't do that with HTML forms and PHP aren't I?...
zaimazhar zaimazhar
0
Hi. So, I have to get 2 sets of data (from two different table competition and user) to determine which competition the user has already registered or not by checking the participation table (many-to-many relationship since, multiple users can join m...
uniqueginun uniqueginun
1
can I consider Livewire component class like a typical Laravel controller and do what I want inside it. I know technically I can but I'm asking generally here. Like for example can I dispatch a job? can I write more complex login inside it....
Create a New Discussion Button