irankhosravi irankhosravi
3

This action is unauthorized.

I am getting This action is unauthorized 403 when i enter url localhost/website/admin/coupons/store. I want to protect to save coupon. create.blade.php...
96downlu 96downlu
2

Resolving two different instances of the same abstract out of the service container

So, please correct me if I'm on the wrong page here, but here goes... I have a class that is resolved by the service container. In its constructor, it has 3 dependan...
EMfinanga EMfinanga
3

if statement in blade

how can i apply this statement in my tag as my code below, or what is the best way i can use this @foreach($inwards as $key=>$dt)...
gazd1977 gazd1977
4

Error when migrating Cashier

Im following the cashier install guide, but having an issue when i come to run the migration. Error as below. Illuminate\Database\QueryException : SQ...
c3422867 c3422867
5

Raw SQL query and binding data?

create.blade.php @csrf First Name Last Name SAVE controller > Route::POST('/form-filled', '[email protected]...

Enhanced database seeding

Hi there, I am looking to create 50 fake articles in a DataBase Seeder for a chosen Client : // ClientsTableSeeder factory(Client...
Medala Medala
13

Cannot install Tailwindcss on a fresh laravel project

Is there an issue installing Tailwindcss on the latest laravel? I have spent four hours trying to make it work on a fresh project....
Mix
13
61
EMfinanga EMfinanga
1

select multiple where in

hello how can i write this sql in laravel SELECT `created_at`,`l_type`,`vch_no`,`item_id`,`quantity`,`rate`,`amount` FROM...
knubbe knubbe
4

Laravel 6 and php 7.4 seeding problem

I update to php 7.4 and in mine laravel 6 project when I seed a class I get this error: ErrorException : implode(): Passing glue string after array is deprecat...
Laravel
4
129
Fajar Fajar
9

mb_strpos() expects parameter 1 to be string, object given

hey buddy's I get an error message when trying to display data with datatables mb_strpos() expects parameter 1 to be string, object given th...
PT-83 PT-83
6

Starting from Scratch Series / Routing to Controllers

Hello everyone, I am completely new to Laravel, but from what I can see this community looks amazing! I decided to start the video series and have reached the...
bhushan bhushan
3

AssertSee multiple thing in phpunit test

/** @test */ public function it_shows_top_ten_profiles_according_to_the_reputation_points_earned() { $users = create('App\User'...
serhiiposternak serhiiposternak
3

Undefined property: Illuminate\Database\Query\Builder::$id

I am having this error: Undefined property: Illuminate\Database\Query\Builder::$id Code: $info = DB::table('info') ->j...
abingpj abingpj
1

Laravel raw query to Eloquent.

Hi, I have a query that I want to convert it into eloquent. \DB::select('select * FROM brands WHERE id in ( select brand_id from products WHERE catego...
dycoda dycoda
3

Cross Site Form Submit

If I have a domain abc.com and def.com, on the abc.com I make it a static landing page with a form to submit using laravel, and on the def.com I make a admin dashboard to r...

Laravel access one more from another controller.

I am trying to retrieve all students from the UserController but when I dump students all array I get empty collection in my view. Is the middleware preventing...
sohexaxok sohexaxok
1

Google calendar events

Hi guys, Do you know a package where I can insert events in google calendar. The documentation is hard to read and I really can use some help. Any resource i...
van-india van-india
14

how to pass url with id in laravel js file

i have js file link in laravel blade file so how to pass id in url i m using datatable js file so how can i pass id in url here is my datatable.js file...
Laravel
14
88
successdav successdav
1

Aws s3 or Vimeo Hosting which do I go with?

Hi! Due to lack of finance I was thinking of hosting my videos personally, on my server but after some research i have decided to go for a video hosting company? I a...
baloch baloch
9

laravel redirect back to post route, i get MethodNotAllowedHttpException

At first on a get request i show a form, on submitting it, it goes to a post url does some working in the controller and then returns another view which has a form. after s...
Requests
9
1550
EMfinanga EMfinanga
4

Incorrect time in created_at

I have a table with timestamps column (created_at and updated_at) in mySql database. I am using laravel version 5.4 and php 7.0. I happened to notice that it is addi...
abingpj abingpj
1

why Fatal Error : Class 'Guzzle\Http\Client' not found?

Hello I am facing an issue in a laravel project. It's showing this error Fatal Error : Class 'Guzzle\Http\Client' not found I have Guzzle in...
pedroroccon pedroroccon
9

Problem with unique field validation on update

Hello guys! Thanks for the interest. Well, I have a question. In my application I have a form for populate my products table. Each product may have a unique...
Requests
9
5286

syntax error, unexpected '<'

I'm receiving a syntax error for the following in a blade syntax error, unexpected '<' Here is my code- @if({{$qwinners->closeq}} == 0)...
shrooq shrooq
1

How to add an attribute in my relation?

I want to add an attribute in my relation and return it in my API but I should use request in my model. Book.php protected $appends = ['userState']; p...
strangequirks strangequirks
5

How to use where in Laravel query builder?

Here is my code- $brand = $request->brand == 0 ? "" : $request->brand ; $category = $request->category == 0 ? "" : $request->...
shantodev shantodev
2

Why Collection::save does not exist?

Hi, Suddenly I am getting this error. Collection::save does not exist. Here is my code- public function register(Request $request) {...
papia91 papia91
2

Count record by user id

I am trying to get record by user id.This is working for login user . But I am Trying to get details for all users .Not only. Here is model public functio...
RidwanIslam RidwanIslam
2

Composer couldn't find error.

Hi, I got an error that composer couldn't find vendor/composer/../laravel/framework/src/Illuminate/Foundation/helpers.php The larave...
ruhulamin ruhulamin
4

Illuminate\\Database\\QueryException::getUserMessage()

Hi, Once I am trying to access my API, I get this error. { "status": "error", "message": "Call to undefined...
Fajar Fajar
10

installation fresh laravel

hey guys I did a new installation for the laravel project with version 5.7. composer create-project --prefer-dist laravel/laravel newprojek "5.7.*"...
Laravel
10
1083

Laravel 5 - only home page route working on live server

i just found the main problem here. all is working fine in my localhost, but on live server, ONLY the home page route is working. like : www.example.com/ is working...
Laravel
19
1840

PHP7.4 PDO Exception

I updated my local PHP to 7.4 with homebrew but with this PHP 7.4, Laravel 6.6 cannot be used to connect to MySQL. I even tried with fresh laravel project and it cannot con...
RFFRED RFFRED
6

Issue with spatie/laravel-medialibrary

Hello, I am having issues installing the spatie/laravel-medialibrary . Running composer : composer require "spatie/laravel-medialibrary:^7.0.0&qu...
General
6
105
Create a New Discussion Button