hasen39 hasen39
13

Trying to access array offset on value of type null

i was working on laravel 5.7 and i upgrade to laravel 5.8 . in 5.7 it was working fine without error. but in 5.8 i get this error. ErrorException Trying to...
Laravel
13
28442
alierffanmanesh alierffanmanesh
13

How to highlight code on the server side with PHP in Laravel How to highlight code for my site same laracasts I need help usign highlight code or markup my codes in my site same laacasts

How to highlight code on the server side with PHP in Laravel How to highlight code for my site same laracasts I need help usign highlight code or markup my codes in my site...
Laravel
13
171
devcamilo devcamilo
7

LARAVEL with MOODLE

What steps do I take to integrate Moodle with laravel? Someone has resources that I could read, please share. Thank you. I have tried but I don't achieve results...
Laravel
7
3345
kensmithzzz kensmithzzz
1

Is my Socialite Facebook avatar code about to break?

I use Socialite, with Facebook as one of the oauth providers. When a user logs in via Facebook, I save their avatar URL. I then use that URL whenever I need to display thei...
AlexanderKim AlexanderKim
7

L5.2. Database seeder multiple rows not working

I want to seed database with multiple rows with a seeder: public function run() { DB::table('users')->insert([ [ 'name' => '...
Laravel
7
1643
adhik13th adhik13th
3

Data Binding Laravel Livewire get error on math operation

I create some operation like sum or average or anything on math . but have error Unsupported operand types just try to sum my inpu...
noblemfd noblemfd
17

How to automatically insert data while trying to render a view blade

I have this controller : public function index() { $userID = Auth::user()->id; $userEmployee = Auth::user()->...
Laravel
17
157
coder72 coder72
11

My Path for CSS and javascript is not working ?

This is my route for main/index.html Route::get('main-index', function () { return view('main.index'); }); i tried to give css path like...
Laravel
11
64
davy_yg davy_yg
9

Update Service Content

Hello, I am trying to update the service content: HomeIntroController.php public function update(Request $request, $id) { // $intro =...
nategg nategg
2

Laravel 8 syntax error?

I'm a noob trying to fix an error in my Laravel 8 project and once again find myself lost deep in underlying files trying to follow the labyrinth to understand what the hec...
tykus replied
Solved

VerifyCsrfToken - exclude domain name rather than URI?

Hi guys, App\Http\Middleware\VerifyCsrfToken providers $except = []; to exclude URI's Is there a way to exclude domain names eg: api.domain.com instead? The L...
Laravel
2
107
BrownieCoffee BrownieCoffee
5

Is it possible to have www.example.com url with app in subfolder (shared hosting).

Hi, I have question. Actually my website url is www.example.com/folder. Is it possible to have only www.example.com without move my app on root folder in sha...
grozavule grozavule
1

Driver [smb] is not supported

I recently upgraded to Laravel 8. When I run a script that requires the smb driver, an exception is thrown that says "driver [smb] is not supported." Here...
webfuelcode webfuelcode
3

Setting the permission to view for logged user

I am using spatie permission. Here I have code from a tutorial and stuck on giving permission to authenticate users. Here the middleware used which blocks the user t...
tykus replied
Solved
mvnobrega mvnobrega
0

How to set canonical url to another language

I have a multi-language website in which only two versions will be identified in content: pt-br and pt When users access the path "pt" I need to set the ca...
Adgower Adgower
1

Alisa not working

I'm trying to use an alias for the Mula Pkg https://github.com/lukeraymonddow...
lara123 lara123
2

how to get current location of a user ? i am using this code but not getting accurate lat lng please suggest

$ip = $_SERVER['REMOTE_ADDR']; $details = json_decode(file_get_contents("http://ipinfo.io/{$...
Laravel
2
1470
youngjedi youngjedi
3

SAML 2.0 SSO - What do you recommend?

Hi. I have a new enterprise project at hand. The (enterprise) client requires that authentication happens via SAML 2.0 / SSO rather than your typical authentication....
Laravel
3
802
tom-shelby tom-shelby
1

Child-Parent relationship on an index | Update won't Cascade

Hello, I've got a table representing folders, referencing parent's folder's 'number' (!= ID). It's a reflexive relationship on a ta...
grozavule grozavule
1

Invalid object name [SESSIONS]

I recently installed Laravel 8. The site displays the following error when I open it: Illuminate\Database\QueryException SQLSTATE[42S02]: [Microsoft][ODBC Driver 17...
tykus replied
Solved
codebranch codebranch
7

Laravel Fortify Route Prefix

I want to add a route prefix to Fortify's default routes e.g /login would be admin/login or /register would be /admin/register . How can this be done....
Laravel
7
446
Atef95 Atef95
0

Livewire rendering scripts

Hey artisans I'v an issue with livewire , my scripts are no more working when I livewire repopulate the dom I've tried both wire:ignore and...
oxbir oxbir
17

firstOrCreate or firstOrNew not working

I have a row in educationals table...
Laravel
17
125
hackroot hackroot
17

laracom ecommerce, routes and menus

Hi i just installed laracom ecommerce (a laravel ecommerce web application), However i can't get the menu to appear in the frontend. here is my project...
Laravel
17
327
Shiva Shiva
1

Getting my modal to have the correct product with livewire

Is there a way to emit from the Livewire's component in my case that is Products.php to my blade component? What I'm trying to do is create a page where when the use...
ollie_123 ollie_123
12

Livewire Not Making Any Ajax Requests?

Evening All I'm completely stumped, my customers page was working perfectly and could add customers etc via the livewire controller component but now i cant see any...
Laravel
12
142
nicotravassos nicotravassos
1

TailwindCSS navigation next to dashboard container

I am seeking a assistance with the below tailwind css snippet: <div class="min-h-screen flex items-center justify-center bg-gray-100 py-6">...
GodziLaravel GodziLaravel
11

How to reset the IDs in an object ?

Hello , I want to reset the IDs in one object : "95981": { "id": 52, "city": "NY", },...
Laravel
11
124
lamiafarouk lamiafarouk
2

Mail/notification sending Error

Hello Artisans, I require your help please, I received this error while I am trying to send a mail or notification, please advise Expected response code 250 but got...
GobsRuiz GobsRuiz
4

How do I register the system date?

I'm making a news crud and I want to show the date that this news was registered. Laravel already has timestamps ready, but he also takes the time and I would just like the...
tykus replied
Solved
fsiddiqui fsiddiqui
2

Multi Auth with Roles and Permissions

I have 4 Separate sections of logins and registrations Admin Organizer Exhibitor Visitor Except visitor, all roles hav...
marshal007 marshal007
10

how to check difInMinute between two timestamp?

$start = Carbon::now()->addMinutes(2)->timestamp; $now = Carbon::now()->timestamp; difInMinute between $start and $now ?...
Laravel
10
88
Ravish Ravish
3

How to check what middlewares a particular route has?

I want to execute a condition if a route does not have any middlewares...
bplace bplace
1

Use Automatic Injection of bound models in Components

I want to automatically get the current model, found with implicit route model binding, into my component. I have the following codes : web.php...
Nati323 Nati323
2

Laravel 8 Forms build library

Hi, I wanted to know what library are you suggest to use for building forms on laravel 8? I do remember I saw laravel has it's own official package but I haven't fou...
Create a New Discussion Button