Questions tagged [laravel-5.4]

Laravel 5.4 is a past version of the open-source PHP web framework replaced by 5.5 version created by Taylor Otwell. It was released on January 24, 2017. Use it in addition to the laravel-5 tag if your question is specific to Laravel 5.4. Use the laravel tag for general laravel related questions.

What is new:

  • Markdown Mail & Notifications
  • Laravel Dusk - BrowserKit testing replaced with ChromeDriver
  • Laravel Mix replaces Laravel Elixir
  • Blade Components & Slots
  • Implicit model binding for broadcast channels
  • Collection Higher Order Messages
  • Object Based Eloquent Events
  • Job Level Retry & Timeout
  • Request Sanitization Middleware
  • Realtime Facades
  • Custom Pivot Table Models
  • Improved Redis Cluster Support

Resources:

Other notable tags:

4188 questions
1
vote
1 answer

Sorry, the page you are looking for could not be found. (1/1) NotFoundHttpException in laravel 5.4.28

php file inside app\Http\routes.php this is my route code Route::group(['middleware' => ['web']], function (){ //getDashboard Route::get('dashboard', [ 'as' => 'get.register', 'uses' => 'dashboardController@getCreate' …
Software Developer
  • 197
  • 2
  • 7
  • 22
1
vote
2 answers

laravel: vaidation vs migration schema rules

i have a migration with the following: Schema::create('ingredients', function (Blueprint $table) { $table->increments('id'); $table->string('name',10)->unique()->nullable(false); $table->timestamps(); }); If you note i want the string…
Santhosh
  • 9,965
  • 20
  • 103
  • 243
1
vote
2 answers

Laravel: Security For ADMIN and USER

I have a two different login forms for user and admin. What I want is the user should only login in their own form otherwise it should be an error, and just the same for the admin form. I only have 1 table for both user and admin in my database.…
JaneTho
  • 321
  • 1
  • 2
  • 13
1
vote
1 answer

How can I use Guzzle to make a post request to Vertifire API using Laravel?

I'm trying to use Guzzle with Laravel to make a post request using Vertifire API. According to Vertifire's documentation, a minimal post request should be: curl https://api50.vertifire.com/v2/serp/url \ --header "X-Vertifire-Token: MY TOKEN HERE"…
1
vote
1 answer

Laravel 5 : including javascript files

First off, I have to precise that I'm quite new to Laravel and that I have a lot to learn. In one of my controller I need to call a Javascript function. To do so, I simply echo ""; I'm just unsure about where to…
MTH
  • 53
  • 2
  • 6
1
vote
1 answer

Inner Urls not working on Linode

I have below two routes Route::get('register', array( 'uses' => 'Auth\Register\RegisterController@showRegistrationForm', 'as' => 'showRegistrationForm' ) ); Route::get('/', array( 'uses' => …
Pankaj
  • 9,749
  • 32
  • 139
  • 283
1
vote
0 answers

Table query in boot function

Recently, i viewed a couple of videos about ACL in laravel (https://laracasts.com/series/whats-new-in-laravel-5-1/episodes/16) and after i copied all of the code, i've ran into an error when i'm trying to do anything like migrating, opening tinker…
Src
  • 5,252
  • 5
  • 28
  • 56
1
vote
1 answer

Eloquent query not returning the expected results from whereHas

Current relationships: A Clinic hasMany Consultants A Consultant belongsToMany Treatments (pivot table relationship) A clinic may not have consultants, and a consultant may not have treatments. I only want to return clinics that has consultants,…
user860511
1
vote
1 answer

Laravel Setting active class to navigation

I want to set active class to my active routes, i have tried below approach but it is not working The navside.blade.php page
1
vote
4 answers

showing {"error":"Unauthenticated."} on laravel api call

showing {"error":"Unauthenticated."}, while calling larvel API in Laravel 5.4 and passport version: v1.0.9, using ajax call. Calling from route api: Route::get('category/get_tree_data', 'CategoryApiController@getTreeData')->middleware('auth:api');
leaveme_alone
  • 576
  • 2
  • 5
  • 24
1
vote
1 answer

How to give auth condition in laravel 5 middleware

I have a middleware that called with Frontend, the usage of that middleware is showing menu that i create with laravel-menu
YVS1102
  • 2,658
  • 5
  • 34
  • 63
1
vote
1 answer

Image upload using Laravel 5.4 Intervention Image 2.x

I'm trying to upload an image and resize it using Intervention Image 2.x. But I get an error called Image source not readable. Is there a way to debug this error. I'm using the following code shown in the…
Isuru
  • 3,818
  • 13
  • 49
  • 64
1
vote
0 answers

Auth scaffolding doesn't work in middleware

In Laravel, I had made authentication scaffolding every time the authentication is requested for every action I can't debug. Route::group(array('before'=>'auth'),function(){ //module routes Route::resource('menu','MenuController'); …
ganesh dev
  • 11
  • 1
1
vote
3 answers

Laravel executing GET instead of POST request

I have form to POST data to Controller and update database The form in my orders.blade.php