nicwek nicwek
0

Using Ajax to Filter Brands in Laravel Ecommerce

I am following up on an online tutorial to explain on how to implement product brand filters in a laravel e-commerce. The filter uses ajax and checkboxes wher...
devondahon devondahon
5

Can I get all sessions of a given user with Facade\Session ?

Can I get all sessions of a given user using Illuminate\Support\Facades\Session instead of DB like below ? Illuminate\Support\Facad...
amitshahc amitshahc
13

Validate the password reset token before showing the reset form

I am looking for the code modifications in below class where I can put the token validation before showing the password reset form. [in showResetForm() method...
Laravel
13
1900
shanedeconinck shanedeconinck
1

Custom authentication using SessionGuard

Hi I'm using Laravel 7 and did the Auth scaffolding. I'm happy with all the Session Guard functionalities, but instead of using the database I have to authenticate t...
CosminAndrei CosminAndrei
6

Detach if checkbox is unchecked

Hello guys. I have a pivot table with 2 foreign keys (product_type_id and file_id) for make relation with 2 tables(product_types and files table). For each file I c...
c4ost c4ost
1

Route does not redirect to method

Hello. I have a problem with route redirecting. I define route to the controller create method: Route::get('/posts/create', '[email protected]');...
RohitS RohitS
4

Laravel queues failures with error "Call to a member function beginTransaction() on null"

Well, I am on Laravel 5.6.39 and processing some heavy jobs (Raw MySql Querries) under Laravel queues with Laravel database driver. The thing is, all my other...
takebrown takebrown
0

The process has been signaled with signal "11" in server (Laravel snappy)

I found this error when I update the server. But it working fine in my localhost. My function here is to download pdf file from html. I put 777 permission in my vendor/h4cc...
Alex_B Alex_B
1

anyway to fix request()->validate error: array_map():Expected parameter 2 to be an array, int given

private function validateRequest() { return request()->validate([ 'name' => 'required|min:3', 'role_id' => Roles::c...
noblemfd noblemfd
3

How to enforce dd/mm/yyyy on datepicker

In my laravel-5.8, I am using jquery datepicker: View <div class="col-sm-4"> <div class="form-group"&g...
Oldenborg Oldenborg
15

Separate controllers for API and WEB

With the new release of Laravel 5.3 Im building an application with both an API and a WEB interface. Should I make seperate controllers for API and WEB? Lets just us...
Laravel
15
3679
luisalmeida luisalmeida
15

Auto increment ID for each client of the user

I've been thinking the following scenario. On mey proejct I have USERS and each users may have multiple clients registered on the platform. So I have a clients table...
Laravel
15
837
shami003 shami003
14

Records not deleting with foreign key constraints

I want to delete product when the auction is deleted. I have used the foreign key constraints but the product is not deleting. public function up() {...
Laravel
14
90
proelitesunny proelitesunny
2

Creating API using Laravel

Actually, I'm little bit confused while using Laravel api route file. My question is- If I need to access the data of my web site in other platform (like android app...
Laravel
2
187
Giorgiovski Giorgiovski
1

Clearing Redis cache with cache:clear

I am trying to learn Redis by testing it. I created a custom function in my routes: Route::get('/', function () { // redis has posts.all key exist...
JelouMC JelouMC
2

simple API and how to use it

How can i make a simple API and use it to my website...
IvanRadojevic IvanRadojevic
8

v-model="guest"

My v-model="guest" is a object: { "id": 17, "name": "Ron Volkman", } I only need "id" value (17) from v-mod...
mustafaabdujalil mustafaabdujalil
4

Swagger with Laravel

How can i use Swagger with laravel ?!! any tutorial or article ? Thanks...
Laravel
4
3722
sajadsholi sajadsholi
0

prevent merging validate data in laravel validation

because of some reason I use "Validator:make()" istead of "$request->validate()" and I have to use it like this : user validation :...
beyond beyond
6

Limiting the column string to 192

I was forced to change the Schema default string length to maximum of 192 when I wanted to create migration for deployment of which in production mode I was not forced to...
akmadhwa akmadhwa
1

Chunk script run

hi all, I am trying to copy all data and dump it into new table as i need to check one by one of the data before dumping, but ive got problem as i used take and not sure wh...
PetroGromovo PetroGromovo
6

With html2pdf in generated pdf as all css styles are lost

Hello, In my laravel 5.7 / bootstrap 4.4 app I use spatie/browsershot 3.37 and spipu/html2pdf 5.2 to generate pdf file and for my generated pdf file want I set layout with...
mdk999 mdk999
5

PHP Error: Call to undefined method stdClass::save()

I have a model that throws the above error. I created a seeder for this model that doesn't seem to run (other seeders in the folder run). The model is below.....
Laravel
5
1913
Chron Chron
1

default value

Is there a way to have a default value without creating a record??...
Naysoewin Naysoewin
3

Default User Avatar Toggle in Laravel

Hello, public function getAvatarPathAttribute($avatar) { return asset($avatar ? : 'https://www.gravatar.com/avatar/'); } If...
skotamreddy skotamreddy
0

Disable precompiling of handlebar templates during npm run dev?

I am using handlebars 4.7.6 with handlebars-webpack-plugin 1.8.1 on Laravel 7.0. Is there a way to disable the precompilation of handlebar templates during npm run dev com...
Gellish Gellish
1

Class 'App\Http\Resources\UserResource' not found

Guys can you help me the fix issue Class 'App\Http\Resources\UserResource' . <?php namespace App\Http\Controllers\Api; use App\Mode...
virgiltu virgiltu
1

Laravel and Strip PreBuilt Checkout?

Does anybody know of a module that helps with the use of Stripe PreBuilt Checkout pages?...
Laravel
1
248
DShannon DShannon
1

Cashier - handling subsciptions using Stripe Checkout

Hi All, Wondering if anyone has managed to successfully implement Stripe checkout for handling subscriptions? I see the latest version of Cashier doesnt support it a...
Laravel
1
120
deepu07 deepu07
1

Laravel ManyTOMany Eager Loading Where cond

Hey Mates, I'm trying to do where condition in many to many relationships on eager loading but getting an err. $user->colleges()->with([ 'd...
Flex Flex
20

404 Not Found

working with Laravel 7 and I have user data edit options as UserController in following public function update(Request $request, $id) { $this->...
Laravel
20
260
noblemfd noblemfd
3

How to format min and max date in Laravel

In my Laravel-5.8, I ham using JQuery datepicker <script> $(document).ready(function () { $('.leaveDate').datetimepicker({ format: 'MM/DD/YYYY...
shami003 shami003
1

I am getting error in deleting records

Hi all, I want to delete a product in an auction. I am getting the following error: The DELETE method is not supported for this route. Supported methods: GET...
shami003 shami003
4

Can I disable error reporting in Laravel app while in Local environment?

Is it possible to disable error reporting in laravel app if the app is running locally like on xampp?...
IvanRadojevic IvanRadojevic
4

Vue.js data

With this code, I have options data: {"id":1, "name": "Mister} {"id":2, "name": "Master} How to get? Mister...
Create a New Discussion Button