AjaxTest AjaxTest
4
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'key' in 'field list' (SQL: insert into settings (key, value) values (lang, Arabic), (company_name, pos), (username, pos), (password, pos), (smtp, pos), (host, pos), (port, 888), (encryption, pos...
swimmer swimmer
3
How can I find the full namesapces of a class ?...
neonodyssey neonodyssey
4
Hi all, I hope someone can point me in the right direction. I am looking into creating an api request to "login" a user through an api. Why am do I need an api for a login? I am creating a desktop application where a user is required to log...
swimmer swimmer
5
Hi, I am trying to use the following extension to convert a Excel sheet to a Laravel collection https://laravel-excel.com/ I have the following <?php namespace App\Imports; use App\Quantitie; use Maatwebsite\Excel\Concerns\ToModel; use Illuminat...
sin2san sin2san
10
I am fetching data from database to view. I am having 3 different datatables with some filters. Loading all together taking about 16 seconds. I need to first load the 1st datatable and after that I need to load the other 2 one by one. I have tried aj...
treadnought treadnought
1
Trying to clone Caleb's surge project into a sail setup. Once cloned, I'm following the instructions at https://laravel.com/docs/8.x/sail#executing-composer-commands, i.e. cd to the surge directory and run: docker run --rm \ -u "$(id -u):$(id -g...
Desssha Desssha
1
some time i got this error and dissappears again when i make artisan optimize and also for browser . how can solve it please Ecommerce_Laravel8\app\Http\Repositories\UserRepository.php:32 namespace App\Http\Repositories; use App\Http\Interfaces\User...
ottaviane ottaviane
1
Hi all, I'm struggling with this problem: I'd like to upload an image to a specific disk in Laravel 7. I configured this disk in filesystem.php 'disks' => [ 'local' => [ 'driver' => 'local', 'root' => sto...
http://twtechnologies.africa/#/team have tried using const router = new VueRouter({ mode: ‘history’ }); but it is not working....the application is a combaination of laravel and vue js...
tuturu1014 tuturu1014
4
I'm trying to install font-awesome to a freshly created laravel 8 inertia Jetstream. I installed fortawesome but it gives the error: Unknown error from PostCSS plugin. Your current PostCSS version is 8.2.4, but postcss-import uses 7.0.35. Perhaps th...
axtg axtg
15
I've been developing a SPA with Sanctum locally, which works. Registration, verification and login. Now I moved to production, and registration and verification still work, but login throws: Session store not set on request. "/home/***/webapps/b...
Pavinder Pavinder
5
Hey Everyone! I want to integrate freshdesk in my laravel app. I found this package : https://github.com/mpclarkson/freshdesk-laravel but seems outdated and also my laravel version is 7.2 it only supports 5. so is there any other way to integrate fre...
warpig warpig
4
I want to have a loading screen whenever a Blade component is in the process of rendering, but how can I target a Blade component ? Something like: @if ( {{--- is the component done loading? ---}} ) <x-main-slider/> @else <div...
amirkamizi amirkamizi
0
Hello I have a task I need to run every 4 hours here is the code $schedule->call(function () { try { set_time_limit(30000); $timeStart = microtime(true); Log::notice('started sending jobs at ' . date("Y-m-d h:i:sa&...
amirkamizi amirkamizi
1
using laravel 7. updated the php from 7.1 to 7.2 and now keep getting this error for the jobs production.ERROR: Connection refused [tcp://127.0.0.1:6379] {"exception":"[object] (Predis\Connection\ConnectionException(code: 111): Connect...
anilkumarthakur60 anilkumarthakur60
3
I was running the project in localhost during the development, I was not getting any error with hitting direct URL in browser www.websitename.com/admin/blog but after uploading the project in Cpanel and hitting URL in browser www.websitename.com/adm...
Deekshith Deekshith
8
I am using laravel corcel to get details of my WordPress DB posts. I have a query like below where it displays all posts on the selected date, $date = "2019-10-12"; return Post::status('publish') ->whereIn('post_type', ['...
MahmoudElhalaq MahmoudElhalaq
3
Hi, I got this error when I run this command $ npm run dev The error message TypeError: program.parseAsync is not a function at run (C:\xampp\htdocs\Laravel\crmlaravel\node_modules\laravel-mix\bin\cli.js:50:19) at Object.<anonymous> (C:...
_midhun _midhun
6
No problem while running app (Laravel 8), But when using Vs code namespace App\Http\Controllers; use App\Rules\ValidUser; use App\Http\Controllers\Controller; use App\Models\Login; use Illuminate\Http\Request; use Illuminate\Support\Facades\Hash; us...
Veleous Veleous
2
How do you override class attributes that are defined on a blade component? For example, given the following blade component: <div {{ $attributes->merge(['class' => 'bg-red-500']) }}> {{ $slot }} </div> I can use the above as fol...
chrisgrim chrisgrim
3
Hi, I generated a user policy and added public function __construct() { $this->middleware('can:update,user'); } to my ProfilesController.php and in my UserPolicy.php I have <?php namespace App\Policies; use App\Models\User; u...
SunnyBoy SunnyBoy
2
Hi All, I am trying to upload image with filepond (it works), but i want to resize my images before uploading. This works without FilePond $file = Image::make($request->file('image')) ->fit(700, 467, function ($constraint) { $const...
www888 replied
Solved
www888 www888
7
Hi, Using DOMPDF Route Route::get('/pdf/{invoice}', [App\Http\Controllers\InvoiceController::class, 'getPDF'])->name('invoice.pdf'); Function public function getPDF(Invoice $invoice) { $pdf = PDF::loadView('invoice...
www888 www888
2
Using DOMPDF, when generate pdf not English text showing ??????? How can I add UTF8 encoding ? public function getPDF($id) { $invoice = Invoice::find($id); $pdf = PDF::loadHTML('invoices.pdf', ['invoice' =>...
neilstee replied
Solved
prasunnandy prasunnandy
1
I am using React routes like this in my Laravel React project. It was working fine in localhost. After uploading the project to the live server route doesn't work. when I remove "exact" keyword from the route it shows the page...
gindra gindra
5
Hi all, I am using sanctum SPA auth for my app. I want to access authorized routes through POSTMAN and test endpoints with it. Tried everything according to this tutorial https://blog.codecourse.com/laravel-sanctum-airlock-with-postman/ setup pre re...
komodo444 komodo444
1
I got this error when I go to webpages, any ideas on how to solve this: I have already given there chmod -R 777 ./storage and chmod -R 777 ./bootstrap/cache. UnexpectedValueException The stream or file "/opt/lampp/htdocs/test/storage/logs/larave...
AHMADH AHMADH
1
Laravel Version: 5.3.31 PHP Version: 5.6.36 Description: I'm upgrading Laravel from 5.2 to 5.3 I followed the steps mentioned here: https://laravel.com/docs/5.3/upgrade#upgrade-5.3.0 When I tried to do composer update I kept getting: [2021-04-12 06:1...
doncho85 doncho85
4
HI guys I am trying to redirect to the section of the page after validation errors but for some reason its not working This is my code: <section id="contact" class="p-5 bg-light"> <div class="container-fluid"...
doncho85 replied
Solved
rafy_alahmad rafy_alahmad
7
i am trying to use alerts sticky bar on my Laravel project but i didn't find any package that's can help me! is there any packages can help with that? or there nothing like that and i should build my own! Edit: what i want its not a simple notificati...
eludic eludic
6
Hello, I have a weird situation and hopefully someone can provide me with a solution. My application has independent login pages for the user depending to the company_id. After the user logs in, this company_id is set in the user session. When the se...
COUPDEGRACES COUPDEGRACES
1
Hi i have controller called "CategoryController.php" public function store(Request $request) { $category = Category::create([ 'name' => $request->name, 'slug' => Str::slug($request->name)...
www888 www888
2
Hello Using filepond for uploading files. Have filed where uploading multi images <form method="POST" action="{{route('store')}}" enctype="multipart/form-data"> @csrf <input id=&q...
Synchro Synchro
5
I have JSON:API-style resources in Laravel 8.36 like this: public function toArray($request): array { if (is_null($this->resource)) { return []; } return [ 'type' => 'thing',...
ssquare ssquare
2
I am trying to learn testing on laravel and this is my testCase: public function test_registration() { // $this->withoutExceptionHandling(); $attributes = [ 'name' => $this->faker->name, 'ema...
ssquare replied
Solved
Create a New Discussion Button