This is a working fork of http://felicianoprochera.com/simple-task-app-with-laravel-5-3-and-vuejs/ - There were several depreciated call and methods.
The biggest gotcha's that I ran acrossed.
- If you are using MAMP for your Database include DB_SOCKET='/Applications/MAMP/tmp/mysql/mysql.sock' in your .env file
- Using Axios - The second arguement in the POST, PATCH call must be an object. I was runnign into errors trying to pass self.task - Using Object.assign({}, self.task) fixed the issue.
- Moved the model logic to it's own Controller using 'php artisan make:controller App/TaskController --resource' added 'use DB' and 'use App\Task' to it
- Used Eloquent for all the Task CRUD operations
- Laravel will throw a 500 error if the Eloquent operations fail. Looking for the best way to debugged this.
- In the Tasks.vue updated a couple depreciated calls - using mounted(), added a div tag to encapsulate the template, and pointed the app.js Vue Element at #app.
Will update soon with Auth - Passport JWT.
Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable, creative experience to be truly fulfilling. Laravel attempts to take the pain out of development by easing common tasks used in the majority of web projects, such as:
- Simple, fast routing engine.
- Powerful dependency injection container.
- Multiple back-ends for session and cache storage.
- Expressive, intuitive database ORM.
- Database agnostic schema migrations.
- Robust background job processing.
- Real-time event broadcasting.
Laravel is accessible, yet powerful, providing tools needed for large, robust applications. A superb combination of simplicity, elegance, and innovation give you tools you need to build any application with which you are tasked.
Laravel has the most extensive and thorough documentation and video tutorial library of any modern web application framework. The Laravel documentation is thorough, complete, and makes it a breeze to get started learning the framework.
If you're not in the mood to read, Laracasts contains over 900 video tutorials on a range of topics including Laravel, modern PHP, unit testing, JavaScript, and more. Boost the skill level of yourself and your entire team by digging into our comprehensive video library.
Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the Laravel documentation.
If you discover a security vulnerability within Laravel, please send an e-mail to Taylor Otwell at taylor@laravel.com. All security vulnerabilities will be promptly addressed.
The Laravel framework is open-sourced software licensed under the MIT license.