How to auth with Laravel 5.4

I keep getting all sorts of funny errors just by trying to see an application can actually work in Laravel and that it's not a myth. First, I had t...
24

Change Date Format using Mutator

namespace App; use Carbon\Carbon; use Illuminate\Database\Eloquent\Model; class UserInformation extends Model { /** * The tabl...
21

Edit Patch a form - error NotFoundHttpException in Handler.php line 102: No query results for model [App\Post].

Hi guys; I keep getting this error when I tried to run a edit form for a post but I keep getting this error NotFoundHttpException in Handler.php li...
17

Undefined variable: posts

i thought i could get away with this but without fully understanding how to resolve the issue there is no progress. i will like to believe t...
16

I am getting "This page isn’t working. localhost is currently unable to handle this request. HTTP ERROR 500"

// Routes Route::get('profile',[email protected]'); //Controller...
15

How to send array to server from input text

I'm trying to send student marks to the server which will then catch in the container and will be stored in the database. So, in vue I'm fet...
15

Laravel Server and Mac OS Server Refusing Connection

Hey everyone, New Laravel dev here. I am a front-end developer and designer who is used to developing with CMS' like ExpressionEngine and Cr...
15

Ajax + Laravel 5.2 + add an attribute to each of the buttons, buttons are generated by @foreach loops

My view: @foreach ($social_networks as $social_network) {{ $social_network->displayName}}...
14

REST Controller 'Edit' view not displaying existing information and throwing 'MethodNotAllowedHttp' exception on update

The 'edit' view for my blog posts is accessed via the index view which looks like this: @extends('layouts.ap...
12

How to get a route from URI

In /routes/web.php I have defined the application routes something like the following: Route::get('/user','UserControll...
11

Trying to get property of non-object

In my controller: $users = User::where('id', '!=', Auth::id())->pluck('username', 'id'); In my view:...
10

dynamic drop down menu (how?)

I want to create a dynamic drop down menu for worker_profile_types and worker_categories. I saw many toturials but all of them are using the HTML f...
10

Using a policy

I have made a policy and registered it as per documentation: protected $policies = [ 'App\Model' => 'App\Polici...
10

showing the extract of an account

Hi. I'm working on our own accounting system which includes cash, bank account, inventory etc. I have the tables for all these processes. Now i wan...
10

MySQL Returning incorrect values.

Hi, Using this method: $id = DB::table('profiles')->where("uuid", $uuid)->value("id"); Returns the Profile ID from...
10

Unable to get route::resource working with new route.

I am having some issues with my new route. I am using Laravel 5.3.31, and have looked at the documentation for views and routes as far as i know im...
10

Laravel helper functions e.g: getClientOriginalName()

Hi, I noticed that there are a load of 'helper functions' (I am not sure if this is the correct term) or methods relating to files, such as;...
09

Query with to Eloquent

Hello guys, Im still new with all this Laravel/ eloquent stuff Could you help me do the eloquent version of this next query?...
09

Laravel Forge pricing/features and scalability

Hi Is there a page with clear pricing information? The current webpage at forge.laravel.com shows an option of 20 and 40 euro per...
09

how select sum from 2 tables group by another table

Hi all i have 3 tables No 1 (supervises) id| name 1 | user1 2 | user2...
09