Questions tagged [laravel]

The Laravel framework is an open-sourced PHP web framework that allows developers to create dynamic and scalable web applications. The source code of Laravel is hosted on GitHub and released under the MIT license.

Laravel is an open-sourced MVC framework for PHP web development released under the MIT license. Laravel helps you create applications with expressive, elegant syntax. The current Laravel version is 10.x. For all Laravel releases, bug fixes are provided for 18 months, and security fixes are provided for two years. Major framework releases are released yearly, while minor and patch releases may be released weekly.

Feature Overview

  • Model–View–Controller (MVC) framework
  • Simple routing using Closures or Controllers
  • Views and templating
  • Built-in Blade templating engine
  • Driver-based session and cache handling
  • URL Routing Configuration
  • Database abstraction with query builder
  • Eloquent ORM
  • Error Handling
  • Redis framework integration and API
  • Reverse Routing
  • Inversion of control (IoC) container
  • Middleware
  • Authentication
  • Authorization
  • Database Migrations
  • PHPUnit Integration
  • Automatic Pagination
  • Bundles
  • Queue system
  • Events and Filters
  • Task Scheduling
  • Accessors and Mutators
  • Markdown Mailable
  • Monolog Logging Library
  • Notifications

Documentation

API Documentation

Packages

Useful Services

Other notable tags

Community

Podcast

Resources and Tutorials

Books

Laravel 4

Laravel was created, and development is led by Taylor Otwell


Official Logo:

enter image description here

208084 questions
26
votes
9 answers

CRUD Laravel 4 how to link to destroy?

I will destroy my user with a HTML link, but it doesn't seem to generate the correct link, what am i doing wrong? public function destroy($id) { //Slet brugeren $e = new User($id); $e->destroy(); //Log også brugeren ud …
helloworld
  • 475
  • 2
  • 6
  • 11
26
votes
3 answers

403 error on Apache for a laravel project, after upgrade to Ubuntu 13.10

I upgraded to Ubuntu 13.10. At first when running apache after the update, there were missing/broken files, so I simply re-installed apache. I backed up the vhost file. When trying to access my Laravel project from the browser, it get a 403…
Brennan Hoeting
  • 1,213
  • 6
  • 18
  • 28
26
votes
9 answers

laravel 4 artisan -- how to rollback to a specific migration state?

Say i got a.php, b.php, c.php and d.php migration classes files. How to rollback to a specific migration state, the state defined within b.php for example, with artisan command ?
do.
  • 621
  • 1
  • 7
  • 18
26
votes
4 answers

Laravel 4 migrations - class not found

This question is now solved - I used the below: And, problem solved thanks to IRC. I was told to run php composer.phar dump-autoload This fixes the problem for me. It's likely related to my strange Composer setup. I've just started playing with…
Euan T
  • 2,041
  • 3
  • 20
  • 28
26
votes
6 answers

Laravel - When to use ->get()

I'm confused as to when ->get() in Laravel... E.G. DB::table('users')->find(1) doesn't need ->get() to retrieve the results, neither does User::find(1) The laravel docs say "...execute the query using the get or first method..." I've read the Fluent…
Bill Jobs
  • 451
  • 1
  • 4
  • 8
26
votes
4 answers

What are the Laravel naming conventions for controllers/models/views?

I remember hearing you should name your controllers, models and views in a special way. Either singular or plural. I don't remember which ones to name what though, and i can't find anything about it in the doc. I'm guessing it's like…
qwerty
  • 5,166
  • 17
  • 56
  • 77
26
votes
4 answers

How do I run migrations for a specific environment in laravel

I'm setting up a new app with laravel (Laravel 4), and having some issues setting up the database via migrations. I made a migration file with: artisan migrate:make --table="jobs" --create jobs Which created a file in database/migrations as…
duellsy
  • 8,497
  • 2
  • 36
  • 60
26
votes
4 answers

Where can I get a complete list of Laravel events (fired by the core libraries)?

I want to know what events are fired by Laravel core libraries. I want to get the complete list, such as laravel.query and laravel.done. There are four events listed at the official docs, but I think Laravel has more events than these four!
Omid Kamangar
  • 5,768
  • 9
  • 40
  • 69
26
votes
4 answers

Check if any error message exists and show all of them in laravel

In laravel for showing all error messages at once i use the following code in the view all(); if(!empty($something)): ?>
@foreach…
Suman Ghosh
  • 271
  • 1
  • 5
  • 6
25
votes
15 answers

Your Composer dependencies require a PHP version ">= 8.1.0"

I am getting this error with Laravel 9, I have PHP 8.1.7 installed Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.1.0". I can see other have asked the question, bit non of the solutions seem to be…
Mendy Kahan
  • 393
  • 1
  • 3
  • 6
25
votes
2 answers

Install vue 3.0 in laravel

Is there a way to install vue 3.0 to Laravel 8? When I run npm install vue@next It started installing Vue 3.0, but for some reason it also began installing vue-template-compiler v2.6.12. The following appears: Additional dependencies must be…
lightning_missile
  • 2,821
  • 5
  • 30
  • 58
25
votes
14 answers

Unable to locate publishable resources

I have tried tried to publish this package using php artisan vendor:publish --provider="BeyondCode\LaravelWebSockets\WebSocketsServiceProvider" --tag="migrations" but I am getting Unable to locate publishable resources publishing complete I dont…
digitcores
  • 293
  • 1
  • 3
  • 7
25
votes
1 answer

When to use Repository vs Service vs Trait in Laravel?

To avoid code duplication in Laravel, I want to have a method that is used by multiple Controllers, it inserts some rows in database and also updates some data in another table. I thought of using Repository, but I read somewhere that Repository is…
J. Doe
  • 812
  • 1
  • 15
  • 33
25
votes
3 answers

Laravel - What steps should one take to make a Laravel app ready for production mode

The scenario is I have developed a Laravel app in my localhost. Everything works fine. Now I need to make it go online. I am just trying to figure out what steps (configuration , security etc.) should I take before I make it go online. I am…
25
votes
5 answers

Laravel Homestead/Vagrant box error : The specified checksum type is not supported by Vagrant: sha512

I am trying to install laravel homestead and can't get past adding the homestead box. The instruction is: vagrant box add laravel/homestead After completing the download process following error appears. C:\Users\HARSHA - PC PRO>vagrant box add…
Harsha Madusanka
  • 337
  • 1
  • 3
  • 12
1 2 3
99
100