Database seed with user input

I was working on adding a user to the system while setting up a new project. I have a seed file where I put the user name, email and password. Is i...
08

Seeding data using factory and eloquent models

I am trying to seed my books and ratings table, and the relationship between them is that a book has many ratings while a rating belongs to a book....
01

Find current Model ID (has many relationship)

Hi, I have an app that allows users to add reviews to a book. My Routes are: Route::get('/books/{book}/addreview', 'ReviewCont...
02

Checkout with Credit Card validation in Laravel

Apart from stripe.com, pls which other API can I use in my ecommerce site, so that users can checkout using their credit card. thanks guys...
05

How to pass collection data to blade component

i have a main navigation bar on all pages on the app, the menu should be populated dynamically, so i made a blade component that will be included o...
06

Laravel-mix with toastr notification (laravel 5.6)

this is my work : I installed toastr :npm install toastr --save-dev File bootsrap.js: window.toastr = require('toastr'...
04

What about a Laravel 5.7 from scratch series?

It's been very long since that series was updated. I find it very useful and didn't mind to watch all of it several times to learn about Laravel an...
12

Section inside Include

how can i add section inside include like this @yield('style') @include('partial-page') in partial page i add secti...
03

Laravel S3 Adapter Invalid Argument Error

I'm trying to upload Media files to Digital Ocean. Here is my code: <?php namespace App\Jobs; use App\Entities\Media; use Carbo...
01

auth.jwt middleware doesn't return json object when e.g no token is provided

Hi. I'm trying to setup laravel with JWT using the jwt-auth library. Actually I'm using the "tymon/jwt-auth": "1.0.0-rc.3&qu...
01

Auth Library

How to use custom table to authenticate the login (with custom field names) ?? For ex:- default table is "users" having email and...
03

Relationship Issues

Hey guys, Having issues with referencing values through what I believe is relationship issues. What I am trying to do is set up so th...
18

Help to Updated Image using Ajax

Good as such I'm getting into laravel and I had a problem when trying to edit some images. When creating or registering a product with its respecti...
00

Having Trouble With Categories

Hi, I am having trouble figuring out how to show brands from multiple categories on my index page. I only want to show 4 brands from each of my dif...
01

How to access data from Vue/Axios in Laravel Controller

I'm making a SPA with Vue and Laravel as the backend, this is my first such attempt so I beg mercy. The problem: I can't figure out how to a...
12

when the user upload new image i want to delete the previous image in folder

when the user upload new image i want to delete the previous image in folder...
04

Publish new changes after moderation

I am building an application where posts need to be approved before going public. Here any user can post articles then it waits in the queue for mo...
00

How get route name resource

Hello, In my my laravel 5.7.3 application I want to get current route to show current menu item for listing and editor in my backend, as :...
00