mammadataei mammadataei
1

Validate array indexes

Hi, I want to use the sync method for storing additional data on the pivot table $product->attributes()->sync($input['attributes']); "attributes...
incridible incridible
3

Route [products.all] not defined. (\resources\views\product\cart.blade.php)

it was working fine but when i add delete cart product functionality then it started showing this error Route [products.all] not defined. (resources\views\product\cart.blad...
aisalen aisalen
2

Advance Query Builder Where clause with given parameter

Hi All, I am having the problem on how to create an equivalent Laravel Query with the intention of having the data generated by below: SELECT EmpID, CASE W...
connecteev connecteev
0

Getting extended profile data back from Linkedin, Google etc using Laravel Socialite

I'm using the latest version of Laravel Socialite to log a user into: Linkedin...
connecteev connecteev
0

Getting Username (Nickname) for Google / Linkedin using Socialite

I'm using the latest version of Laravel Socialite to log a user into: Github...
gedeon2020 gedeon2020
1

how to add vuetify to a laravel project?

Hi i am a beginner with laravel i need help steps to add a framework like vuetify in a laravel v6 project....
Griehle Griehle
6

Sync does not copy all

I am trying to duplicate a already existing ... thing. It copies everything into the database using sync() except ONE value which is ONE column in a database. Type. The pro...
mediax mediax
5

Checkbox update in controller file?

I'm sorry for this question, but I'm very confused, I wan to update my checkbox value in database like published or not published with a boolean value. In controller...
Laravel
5
225
NovocentDev NovocentDev
3

Multiple queued jobs with a single callback (1-n-1)

I have a process that needs to be broken into multiple jobs. After all the jobs are completed I want to alert the user. The application needs to check for images associated...
laracastsluvr laracastsluvr
1

Digital Ocean managed databases

Hello, again friends! Did anyone play with Digital Ocean's Managed Databases? Particularly with MySQL 8. If so, care to share some configuration? Thanks....
chrisgrim chrisgrim
3

Cleaner way to call where() without using a ton if() statements

Hi, I am using elastic search for my site and I am trying to clean up my search method. I have added all the filters I will be using to one method: $events =...
chrisgrim chrisgrim
11

"numeric value expected"

Hi, If I run the following method I get an error saying numeric value expected public function searchLocation(Request $request) { $radiusRes...
Laravel
11
100
irankhosravi irankhosravi
15

Creating default object from empty value

How to change mobile number? public function updatePhoneNumber(MobileRequest $request) { $oldPhone = Session::get('mobile'); $newPhone = $request->...
Laravel
15
94
bobhart bobhart
4

Issues with Laravel URls

Hi all, I have too many issues with Laravel URLS. Some time it accept absolute address but other times it don't work with absolute address. I am using Laravel on my...
namaraea namaraea
3

how can i save multiple checkboxes into multiple column using laravel

code saved the last id in array only @foreach($categories as $category) <input class="form-check-input" type="checkbox" id=&...
KingsleyO KingsleyO
7

Using relationship column in a query

I have my category list coming from this relationship public $belongsToMany = [ 'catbuy' => [ 'Corymillz\Adverts\Models\Cat', 'tab...
AwadGorg AwadGorg
1

Using Image intervention to resize images

Hello, Am using am intervention to resize my images this is the code $image->resize(208,130)->save(storage_path('app/public/'.$gameUploadFolder.'/'.$t...
bhushan bhushan
2

How to change routes/web.php ?

I want to have routes/admin.php for admin routes and routes/web.php for normal routes...
Laravel
2
716
Halim Halim
5

Laravel returns blank page for a method which does not exist

Hello Laracasts, I did a fresh install for Laravel 6, I created a controller with artisan make:controller and I am using resource method at my routes.php, here is my...

Set Permission for different Methods in Controller when using Spatie\Permission

Hi, I am using Spatie permissions and I set up Permissions for specific Methods in the Constructor of my Controller. All Methods should be protected besides th...

How do I make my hasOne connection cleaner?

Hello. I'm trying to figure out how to make my has one connection cleaner. I currently have public function experience() { return $this-&g...
tomsongrey tomsongrey
2

What wrong with my seeder file??

When I try to seed the database it gives me a error and my models are working fine.Here is my database seeder code. <?php use App\Models\Category; use Ap...
mdurao mdurao
8

Laravel Socialite and Laravel 5.4

I'm getting this error: production.ERROR: Symfony\Component\Debug\Exception\FatalThrowableError: Call to undefined method Illuminate\Session\Store::set() in...
Laravel
8
121
mstdmstd mstdmstd
17

Delete old versions of app inside app directory

Hello, In Laravel 5.8 app I use envoy to upload changes on the server(ubuntu 16) and I created user for connect with commands : sudo useradd lardeployer sudo...
Laravel
17
586
midascodebreaker midascodebreaker
1

HHVM NOT INSTALLED IF MARIA DB IS CHOOSEN IN HOMESTEAD INSTALLATION...

I dont know if it is a bug in lavel homestead or not... but if u are both adding mariadb and hhvm for your environment hhvm always get drop in the installation... I...
colbyalbo colbyalbo
0

Valet - Only Works When Internet Connection is Connected

Hello, I've been using valet for a few months now. I noticed today that when my MacBook is not connected to the internet, the sites do not load. When I installed Val...
untymage untymage
5

Which data type supports Integer that start with 0

In migration which method should i set to support numbers that start with 0 ? for example 000012329...
Gbever Gbever
3

Dynamic Routing with Slugs

I am creating a directory that lists professionals with SEO friendly URLs. An example would look something like this: /professionals/state-name-slug/city-nam...
FallOutBoi FallOutBoi
1

Laravel policy is not working as expected

Hello, i am trying to set a policy for users. Where only admin and author can use Post crud. Here's my User model where i check for the relationship....
emanfateen emanfateen
0

fractal returns null to object inside object

I'm using fractal transformation. my User table has a column named avatar which is array of arrays like that {"thumbnail":{"url":"\/...
AwadGorg AwadGorg
1

Use str_replace to replace words within string

Hello, I want to use str_replace or any other function can do the same effect. to do this // let's say that I have this string AD2460 is a browser-based Sci-...
vikas_developer vikas_developer
20

How to Print all selected items by logged in User

I have three tables : User => [ id, email, password, timestamps ] extra_orders => [ id, user_id, order_id, quantity, status, timestamps ] orders => [id, ite...
Laravel
20
113

What is the proper way to handle API redirection

Hey guys, I am working on a project that uses React for the frontend and Laravel for the API endpoints which I am responsible for. The logic is to redirect users to...
Laravel
10
90
mykelcodex mykelcodex
12

Adding up price per week with transactions

I have this $weekly_price = Transaction::where('user_id',$id)->orderBy('created_at','desc')->get()->groupBy(function($date) {...
Laravel
12
84
rjruiz rjruiz
7

Query eloquent belongsTo and hasMany (laravel-datatables)

Well, I'm having trouble showing data about my relationship with datatables. The information I want to visualize is related in the following way: I have the table c...
Create a New Discussion Button