neomuckel neomuckel
5
Hello, is it better to learn only laravel and upgrade later to livewire and tailwindcss or does it make more sense, when i start with laravel jetstream from the scratch? i have only basic skills in html, php and mysql....
Prido Prido
4
Is there a simple tutorial for making a drag and drop page builder, just basics...
ideepesh ideepesh
2
Hi, So, for a project of mine, I thought of using Laravel Jetstream but before using it I started going through its documentation. Where I found browser sessions and two-factor authentication which I didn't understand. Please help me in understanding...
gitwithravish gitwithravish
11
I cloned a project from github I changed the database credentials from remote to local in .env Everything works fine. But then I changed the env variables again and try to config cache but got this error Base table of view does not exist... I tri...
BhavShashank BhavShashank
22
I just started out my career as PHP Web developer and in need to upgrade my machine so just confused which one will be best. Mac/Linux/Windows. I was thinking about MacBook Air due to pretty tight budget. Whats your suggestion should I go for Macbook...
orest orest
2
I have a trait that records the activity of a model RecordsActivityTrait One of the models is polymorphic and in some cases i don't want to record the activity for that particular case. The model name is Reply and it has a repliable relationship For...
erron erron
2
I am currently developing a system that tracks employees' travel expenses, the company wants to include place of origin and destination under transportation category. Where do you think I should add these fields? Should I add these under expenses tab...
erron replied
Solved
lucianonascimento lucianonascimento
8
I would like to know if you guys really use each http status code when you develop API's, cause I noticed that there are many API's that just use 404 when something goes wrong (ALL/ALMOST ALL cases). If I remember well there is a video here talking...
erron erron
2
I am currently working on Laravel project that contains transactions with different statuses and requires validation (eg If data is already submitted/approved, data cannot be cancelled). First, I validated it directly when handling request, but I als...
erron replied
Solved
erron erron
5
Any tips on validating a record that can be reused on other classes? Example: public function approve($id) { $record = Record::findOrFail($id); if($record->cancelled_at != null) { abort(422); } if($record->submitted_at == null) { abor...
orest orest
3
I'm trying to come up with a solution to avoid writing the same validation rules and messages over and over. For example i have the following rules for the body attribute public function rules() { return [ 'body' => ['stri...
dlook dlook
2
So tl;dr, imagine you have: /home/dev-laravel And /home/prod-laravel I don't have much experience with custom artisan commands, but is there a way to create a command on the prod side i.e. php artisan deploy:prod And then that would take everything b...
andyandy andyandy
1
I'm googling hard, but every site is offering just Landing page templates, Portfolio templates.....all these templates are basically a photo on background, some random title and an action button - and that is the entire template. 99,9% of them are li...
alalwiomar alalwiomar
1
I would like to build a system (for example a school management system). The important thing is what I want is for the system to be on the cloud and on more than one server so that there is a Raid or any other alternative technology, between the serv...
rajcsanyiz rajcsanyiz
6
FiraCode is a very cool tool to see your source code. Maybe it is much more smarter, so I make some issue here: https://github.com/tonsky/FiraCode/issues/1152 https://github.com/tonsky/FiraCode/issues/1153 What do you think about this topic!? It is...
twiggy99999 twiggy99999
3
I think I'm missing the obvious here because everyone has been praising the new routing format. For me, my route files have now doubled in size because for every route I bring in I also have to bring in the use statement for the class being called at...
orest orest
1
When i make a request from the front end to the back end ( post, get etc) with axios for example I can use then and catch to handle either a successful or a failed request and flash a message in the front end to give feedback to the user. For example...
andyandy andyandy
2
I'm trying to find some CCS framework with a lot prepared components (in different styles). Like Bootstrap, but instead of 1 generic card for articles it would offer 10 different article boxes in different styles. Instead of helping me to build a ske...
qwertynik qwertynik
11
Attempting to change the server config to support a larger number of concurrent users in the laravel app. Despite making a variety of changes found that the response time does not improve. Note: jMeter is used to load test the app's APIs. Test Result...
r-dot r-dot
0
I have recently inherited a laravel/vue.js application that is hosted on a ubuntu vps. I want to find a way, a routine for deployment of the server. So this is a open question on how i should do this, where should i start, any tools/third part progra...
vladv vladv
13
One of my websites got "hacked", mailtrap credentials got compromised. They send some emails with the subject "LARAVEL SMTP CRACK | HOST: smtp.mailtrap.io". After searching a little I have a tool called "LARAVEL SMTP CRACK&qu...
shiran1 shiran1
1
I'm developing a food delivery app with LARAVEL and I want to know how to notify to the kitchen in real-time when a customer place an order (something like Facebook notification). Thanks in Advance :)...
orest orest
5
I have a FormRequest with the following rules. public function rules() { return [ 'participants' => ['required', 'array', 'min:1'], 'participants.*' => ['required', 'string', 'exists:users,name'], ];...
omar590 omar590
9
Hi I have a collection, I want to execute some action over each 10 of them how to do so? thanks!...
SaeedPrez SaeedPrez
16
Hey guys, I've been on Twitter since 2009 but barely ever used it. I did my first ever tweet a couple of days ago. So I'm wondering, what are some PHP related accounts/people everyone should follow? So far I have.. https://twitter.com/laracasts http...
JanPe JanPe
2
Hi guys, I need your support in API design. First of all, I am well aware of RESTFul, Resources Eloquent Relations. But I always find it difficult to find the ideal way for myself, as I can handle a HasMany relationship for POST / PUT requests. How d...
wivaku wivaku
2
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...
yousifgarabet yousifgarabet
8
Can PHPstorm do more magics than sublime Text, VS code, and Atom? if not then which could have most magics for laravel?...
gitwithravish gitwithravish
7
Many a times, I quickly wish to create laravel project and quickly use some in-built classes to perform some calculations. In order to see the output, what I tend to do is, create a route write my logic within it access it using browser to print out...
ghvinashvili ghvinashvili
8
how to fix this? $ php artisan migrate:refresh [Illuminate\Database\QueryException] SQLSTATE[23000]: Integrity constraint violation: 1217 Cannot delete or update a parent row: a foreign key constraint fails (SQL: drop table `imag es`) [PD...
orest orest
4
I have an input text in which a user can enter a single username or comma separated usernames. I have a rule that validates whether the usernames exist. In that rule if the string consists of comma separated usernames i create an array of usernames a...
Dracool Dracool
91
I don't know about other beginners with Laravel like myself but so far the only thing I've discovered is how frustrating it is to depend on sooo many things that I don't understand. It feels like I need to change 720 degrees in order to just "ke...
arnoldp arnoldp
6
I am using the DB transaction mechanism to keep my updates to MySQL "co-ordinated" ... Works like a dream .... However .... How can I return a value from within the function? I am using use() to pass parameters into the function, but can se...
laradoel laradoel
12
Hey Guys how are you? I'am saving json in my database this way: $table->json('json'); i made an api with all the get/post/delte. put request, works fine! but i want to be able to convert the saved json data to Xml. so i save it in the database,...
gitwithravish gitwithravish
1
In case of database design requirement where it is required to record changes for records in an entity? For example, -> Record changes the user make in his bank details -> Price and quantity changes for a products. As far as I know there are tw...
Tray2 replied
Solved
Create a New Discussion Button