Skip to main content

error while running Laravel crud app

 1. Fatal error: require(): Failed opening required 'C:\wamp64\www\laravel\Laravel-Vue-First-CRUD-master/vendor/autoload.php' (include_path='.;C:/laragon/etc/php/pear') in C:\wamp64\www\laravel\Laravel-Vue-First-CRUD-master\artisan on line 18

run these two commmands

composer update --no-scripts 
composer update
Use the `composer fund` command to find out more!

With this command, you will re-create the vendor folder in your project and after that your project will start working normally.

2. db migrate error

i was accessing it without creating db. after that i migrated and it worked 


Routing issue: clean installation of Laravel apps

It's nowhere mention either in docs or twitter posts.

Symfony\Component\Routing\Exception\RouteNotFoundException

Route [users.store] not defined. (View: C:\wamp64\www\laravel\crud\resources\views\create.blade.php)

http://localhost/laravel/crud/public/insert

C:\wamp64\www\laravel\crud\vendor\laravel\framework\src\Illuminate\Routing\UrlGenerator.php:431


PS C:\wamp64\www\laravel\account> php artisan serve

Starting Laravel development server: http://127.0.0.1:8000

[Wed Sep 16 13:43:30 2020] PHP 7.4.10 Development Server (http://127.0.0.1:8000) started

[Wed Sep 16 13:43:34 2020] 127.0.0.1:60822 Accepted

[Wed Sep 16 13:43:34 2020] 127.0.0.1:60823 Accepted

[Wed Sep 16 13:43:34 2020] 127.0.0.1:60823 Closing

[Wed Sep 16 13:43:35 2020] 127.0.0.1:60822 [200]: GET /favicon.ico

[Wed Sep 16 13:43:35 2020] 127.0.0.1:60822 Closing

[Wed Sep 16 13:43:38 2020] 127.0.0.1:60827 Accepted

[Wed Sep 16 13:43:38 2020] 127.0.0.1:60828 Accepted

[Wed Sep 16 13:43:38 2020] 127.0.0.1:60827 Closing

[Wed Sep 16 13:43:38 2020] 127.0.0.1:60828 [200]: GET /favicon.ico

[Wed Sep 16 13:43:38 2020] 127.0.0.1:60828 Closing



Comments

Popular posts from this blog

GraphQL vs REST

  GraphQL   GraphQL is an application layer server-side technology which is developed by Facebook for executing queries with existing data. GraphQL can optimize RESTful API calls. It gives a declarative way of fetching and updating your data. GraphQL helps you to load data from server to client. It enables programmers to choose the types of requests they want to make. REST REST is a software architectural style that defines a set of constraints for creating web services. It is designed specifically for working with media components, files, or hardware device. The full form of REST is Representational State Transfer. ========================================================= Here is the important difference between GraphQL and REST. GraphQL REST GraphQL is an application layer server-side technology which is developed by Facebook for executing queries with existing data. REST is a software architectural style that defines a set of constraints for creating Web services. It follow...

DBMS ACID Properties

 1. Atomicity states that database modifications must follow an all or nothing rule 2. Consistency states that only valid data will be written to the database. If, for some reason, a transaction is executed that violates the database's consistency rules, the entire transaction will be rolled back and the database will be restored to a state consistent with those rules.  3. Isolation requires that multiple transactions occurring at the same time not impact each other's execution. For example, if Joe issues a transaction against a database at the same time that Mary issues a different transaction, both transactions should operate on the database in an isolated manner. The database should either perform Joe's entire transaction before executing Mary's or vice-versa. 4.  Durability ensures that any transaction committed to the database will not be lost. Durability is ensured through the use of database backups and transaction logs that facilitate the restoration of committe...

Git Commands

  Git commands sorted. Reference: https://git-scm.com/docs Git task Notes Git commands Tell Git who you are Configure the author name and email address to be used with your commits. Note that Git strips some characters (for example trailing periods) from user.name . git config --global user.name "Sam Smith" git config --global user.email sam@example.com Create a new local repository   git init Check out a repository Create a working copy of a local repository: git clone /path/to/repository For a remote server, use: git clone username@host:/path/to/repository Add files Add one or more files to staging (index): git add <filename> git add * Commit Commit changes to head (but not yet to the remote repository): git commit -m "Commit message" Commit any files you've added with git add , and also commit any files you've changed since then: git commit -a Push Send changes to the master branch of your remote repository: git push origin master Status List the...