sunilbfcj sunilbfcj
3
I am importing csv file and extracted header $data = array_map('str_getcsv', file($request->input('file'))); $header = $data[0]; the value of $header[0] is 'first_name' but when i counted it with count method its length was 13 that should be 10....
Gavmrz Gavmrz
1
Bugsnag was reporting ok and then I added a custom views/errors/500.blade.php file and now I get no alerts. Any idea why that would be?...
webfuelcode webfuelcode
3
Working on a project and stuck in like system. Currently, I am just using the route to understand. I am stuck on creating relations between models. I have Post, User and Like tables. So where to use "belongsTo", "hasMany", "m...
I want to choose one datatable package and I did do some first tests : https://github.com/yajra/laravel-datatables works well not seen till now if a user can hide some columns https://github.com/kdion4891/laravel-livew...
devlok devlok
16
I found one issue with validation (probably a bug), but can't find where it all goes wrong. I have a rule: class PhoneNumberValidate implements Rule and if I submit the value like +18565304709 the $value in public function passes($attribute, $value)...
darkec darkec
1
I'm using Sanctum to generate Bearer token. I realized that I can set expiry time on it. How do I refresh token? Is it even possible? Is it secure enough to have unlimited expiry time? What if my app uses that Bearer token and it expires, I'm not ab...
DDSameera DDSameera
12
I run composer update in production server . then i got these message Loading composer repositories with package information Updating dependencies Your requirements could not be resolved to an installable set of packages. Problem 1 - Root comp...
afoysal afoysal
4
I am using Laravel Breeze . My web.php file is like below <?php use Illuminate\Support\Facades\Route; Route::get('/', function () { return view('welcome'); }); Route::get('/dashboard', function () { return view('dashboard'); })->midd...
EmilMoe EmilMoe
5
I had this same error last week, stupid as I am, I already forgot how I solved it. I hope someone here can help me point how, what is going wrong? It happens when a new environment is setup, so it's a fresh clone of my application. I'm running Larave...
EMfinanga EMfinanga
1
I want to send the email using SMT Gmail server, but i sent only to Gmail only but other does not send what can i do regards this? \Mail::send('emails.mail', $data, function($message) use($path){ $message->to('[email protected]...
MoFish MoFish
4
Hi, I am using the mass assignment https://laravel.com/docs/5.4/eloquent#mass-assignment in my controller which is working fine. The update way below is ideal, as i can add on a couple extra fields which are not on my form and then save them all in o...
MoFish replied
Solved
obink obink
6
Laravel 8 and jetstream, is it really new? I just tried installing and playing it in fortify but I can't really understand why my profile photo not showing a picture. update-profile-information-form <!-- Current Profile Photo --> <div class=...
Jean_ali Jean_ali
3
The question to anyone used this package: https://tenancyforlaravel.com/ My idea: I wanna to create an e-commerce app contains multi-tenants with multi-database, that's mean I have an admin panel for the main admin and another admin panel for tenants...
Ajvanho Ajvanho
3
How to exclude certain tags from content. For example, I want to exclude imgs {!! $post->content !!}...
tykus replied
Solved
iluca89 iluca89
3
I would to use placeholder system to get values from database. Suppose I have this string: PB/[[document.protocol_number]]/[[user.code]] I need to replace placeholders inside [[ and ]] with correspondence on models. For example: [[document.protocol_...
Hi Devs, I am refactoring my codebase, I have a shared variable in the boot method of the appServiceProvider // before View::share('shareSettings', SystemSetting::first() ); //now View::composer('*', function ($view) { $view-&g...
Loyd replied
Solved
krunal05 krunal05
3
I want to delete a zip file lets say "abc.zip" which is inside public folder. I am trying somethng Storage::delete(public_path("abc.zip")); but its not working....
neeonline neeonline
1
Hello all, In my project I have Items. An item can have many units. A unit can be available or not (based if owner_id is null or not). Schema::create('items', function (Blueprint $table) { $table->uuid('id')->primary(); $table->forei...
felipesmendes felipesmendes
9
Hello, I need to protect the register view and route to just logged user can register a new user. How do I do that in jetstream? Thank you all....
weband weband
6
So the idea is this: I have products, for which I have available keys. I want to filter only the orders which have products with enough available keys in them. The structure is the following: Order -> OrderProduct -> Product -> Keys (The key...
Naysoewin Naysoewin
1
Hello everyone, Currently, i am working on React and Laravel project , I just would like to achieve 'load more' instead of pagination , Actually i have pretty simple index method that implementing with spatie query builder. public function index()...
Sanctum with Socialite and SPA I'm having hard times trying to get Socialite and Sanctum running on SPA webiste... i would like to use SPA authentication as recommended in laravel documantation sanctum#spa-authentication (not allowed to post links šŸ...
Shedman Shedman
2
I am trying to attach a pdf to an email. I am passing the details with the path to the file. $details = [ 'message' => 'Here is a new signed pdf', 'attachment' => $storage_path.'/app/public/'.$document_id.'.pdf' ]; Then I am att...
manoaratefy manoaratefy
1
Good morning, I implemented queue:work using systemd with following configuration file: [Unit] Description=My Laravel Project [Service] User=root Type=simple ExecStart=/opt/alt/php74/usr/bin/php -d extension=pdo.so -d extension=pdo_mysql.so -d exten...
ptorres ptorres
3
Hi everyone, Laravel 8.x Please, I have a pivot table ā€œapplication_serviceā€ that holds the choices made by the app users in regards to the services they choose. Note that each service belongs to a category. I want to show the chosen services orde...
Kusanagi Kusanagi
4
Hello, I have a database which contains a lot of text. I want to show that text and I did that while iterating over each text with "foreach". I wanted to add a "show more" button. I did it with this script : functi...
twoarmtom twoarmtom
8
I have the following Import function: public function collection(Collection $rows) { foreach($rows as $row) { if(User::where('email', $row['email'])->first() == null) { $user = User::crea...
dxladner dxladner
2
Wondering if Alpine JS currently has a way to accomplish the following. Using Normal Blade file, "sprinkling" some Alpine JS in the file. Running a fetch call to get data on images data object. Looping over items work okay until I get to t...
johnw65 johnw65
5
Relatively new to Laravel. If I want to change the Oracle database connection immediately after it establishes a database connection and destroy the previous connection, which file should I be modifying? For some reason, I see two simultaneous conne...
dev.jim dev.jim
6
I am new to laravel and I like to know how to show the route execution time in terminal when using artisan serve command. Or any other method to view the execution time of a route? I found it is strange Laravel didn't includes this feature by defaul...
ramazankemal ramazankemal
2
Hello there, Now I have a question like this, I hope I can express myself. I am using Laravel 8. Let me explain through this example; There is User and Post migration. The post model should contain the "user_id" field as it is. Now the prob...
Raptor Raptor
2
I'm trying to assign licence categories with expiry date input for each category to a user. I'm working with Laravel 8 and Bootstrap 5. Up to assigning categories to a user I'm ok. The lack of knowledge starts with saving that expiry date to addition...
pavelas pavelas
2
Hello, Today I was reading Laravel Documentation about Notifications and I found this interesting screenshot. Maybe someone knows what kind of software is shown on the screenshot? Thank you in advance!...
Ajvanho Ajvanho
2
Does anyone have any idea why Blade won't show it content from api. Same code, title is showing, but content not? <div class='text-gray-600 font-semibold text-lg mb-2 mx-3 px-2'>{{ $response['title']['rendered'] }}</div> <div class='...
van1310 van1310
47
i want download excel sheet path store in varibale how to do it any suggestion ? $file = Excel::download(new UsersExport, 'Sales Register 2019 Cr.xlsx'); $data = array('name'=>"byte and bits"); \Mail::send('front.m...
Create a New Discussion Button