Laravel is a PHP-based web framework with an expressive, elegant syntax. It is termed the framework for web artisan. The foundation has already lai...
For further actions, you may consider blocking this person and/or reporting abuse
Thanks for the great tutorial, however I'm facing a challenge when i deploy the app to a localhost server, I added some modals and these dont open on the production server but open on the dev server, pliz help me
I try create Controller and Model:
add this
to the top of your web route file
and also you did not add the model for Project, the model should be
Thank you! This problem was solved.
im new in laravel, can i combine this with your jetstream tutorial ?
Yes, I wrote this before the jetstream, you can start with the jetstream because it will create the resources/views/layouts folder automatically for you, then you add the necessary code, but in the case where you have finished this tutorial, just rename the layout folder to prevent error
You can also reach out to me personally if you are having any errors
When I run the project, this was the result "SQLSTATE[42S22]: Column not found: 1054 Unknown column 'updated_at' in 'field list' (SQL: insert into
projects
(name
,introduction
,location
,cost
,updated_at
,created_at
) values (Apple, This is fruit., Cebu, 10, 2021-05-05 01:49:18, 2021-05-05 01:49:18))". What is the problem of this? I am beginner with Laravel.could you review your ProjectsController, projects table in the database and Projects model to make sure you are not missing an entity that may be offsetting the sequence of items to be entered into the database from the form? else
it appears that within your database, you need to ensure that you have a projects table, you can delete it and create it again using
php artisan make:migration create_projects_table
this will create a table in your database/migrations directory,
Laravel will do this by default containing the updated_at, created at
make sure there's also an Id attribute
making three attributes in the create_projects_table (supposedly by default) file then you can add the name, introduction, location and cost
next you need to run
php artisan migrate
it should work now
ErrorException
Use of undefined constant ‘projects’ - assumed '‘projects’' (this will throw an Error in a future version of PHP)
The problem is that the code you copied has
back-quotes
rather than 'forward-quotes'.change
Route::resource('projects', ProjectController::class);
to
Route::resource("projects", ProjectController::class);
double quota. It should work with you. I got the same problem. Very helpful
Thank you, worked for me
ErrorException
Use of undefined constant ‘projects’ - assumed '‘projects’' (this will throw an Error in a future version of PHP) why this happen help !!!!1
What were you doing that it throws the error?
just i did according your lessen finally this happen
its when i finished everything according the lesson the i tryed in the browser localhost:8000/projects this happen
Why is SOLID missing?
Why are the operations on the object not in the service?
Why is Eloquent in the controller and not in the repository?
Why is validation not in request?
But overall the rest is fine :)
Works well for me.
Thanks a million
Excellent tutorial, works great and looks great, thank you
Just what I'm looking for, I will give it a go, thanks for the tutorial
This is a great tutorial. Very helpful. Thank you