get path by route name

Hi, i like to name my routes and then in view get urls by calling route('route.name') but this function is giving me whole url and i would like onl...
03

use same request in Web route and API route with different controllers but get same result in non validate requests

hi im using StoreImageRequest with below code: class StoreImageRequest extends FormRequest { /** * Determine if the user is...
03

Package composer psr-4 autoload class not found

Please can someone help? I want to make a package test, I did create a composer package dependency. The error message when I import it to my...
01

Package Chatter

Hello to you, I have to create a forum for a site I game and I would install the package chatter. Just before ca, I would like to have opini...
01

Column not found: 1054 Unknown column 'id' in 'where clause' (SQL: update `leave_requests` set `updated_at` = 2018-08-18 18:34:47, `head` = approved where `id` is null

Column not found: 1054 Unknown column 'id' in 'where clause' (SQL: update leave_requests set updated_at = 2018-08-18 18:3...
01

Anyone know how to display it in a row ?

Controller $invites = Project::with(['apply.user'])->whereHas('apply', function($query) { $query->where('apply_type', 1);...
03

Error with Auth setup

When I create a new laravel project, and migrate my database, run php artisan make:auth, and run PHP artisan serve, I try to test the login and sig...
06

ECommerce from scratch?

Hello all, I'm wondering is good to build eCommerce website with Laravel framework? is it enough secured and is possible to add payment with paypal...
09

How to update table in controller using a relationship?

I have a model called Recipe (table = recipes) and another called Ingredient (table = ingredients). In the Recipe model I have added this relations...
03

TokenMismatchException in Unit Tests

I am getting a TokenMismatchException when I try to test a post request. Laravel should disable csrf when running tests. I've inspected the...
06

Error: [Vue warn]: Error compiling template - but I do not even use vue

Hey, I have read that Laravel includes Vue. I always get the error "[Vue warn]: Error compiling template - but I do not even use vue&qu...
05

Create “foreign” cookies with js

Hi, how does scripts such as analytics or Adsense track you through cookies all over the web? If I give someone my cross origin js script and that...
01

Multi Connections Dynamic Repository Pattern

Hi I searched everywhere and I do not see how people talk about multi-dynamic connections in repositories. I have a central base where accou...
00

One to One relation problem

Hi, I have defined following relationship on a 'survey' model: public function tenant () { return $this->hasOne(Person...
09

jQuery ajax 403 error

Hello! I try to make simple app using ajax. I made a route for my json data: Route::get('/js', function () { $asd = DB::table('us...
03

Foreign Key Migration Failing

I need to change the onDelete('cascade') method from 'cascade' to 'restrict' on 2 foreign key columns. I've created the migration file and this is...
02

Prevent Dynamically added input fields being rested if the validation fails

I have a form with dynamically added fields, but if i submit the form and i have any validation error then the dynamically added fields are disappe...
03

Maping Routes in Routes Service Provider

Hi, I created the separate Route file for my admin panel named it as admin.php. Then created the map function for it in RouteServiceProvider.php I...
02

laravel eloquent timstamps / parsing timestamps

For an existing application, storing the last login date of a user as a integer based timestamp, I would need to develop a custom laravel based mod...
03

View Composer

How do i pass the current $job in my view to my view composer? I'd like to use a view composer to determine what button should display on my...
01