ShekhSaifuddin ShekhSaifuddin
2
My scenario is you can see the image here, how can I set the default value in the quantity field? and I want when I change the quantity the total amount will be updated how can I achieve this? here you can see my quantity field is an array I catch i...
digioz digioz
2
I have a very simple Webservice that has the following this tutorial: https://www.toptal.com/laravel/restful-laravel-api-tutorial I am able to do all the GET and POST operations, but for some reason I am not able to do a PUT. The error message that I...
jimb814 jimb814
3
I am new to Laravel. I am looking for direction as to how I can send data from a form submitted on Domain A, which I have access to, to Domain B where the User who owns Domain A is a registered user with an api_token field. It seems like the form ne...
sakthivel sakthivel
0
[{"id":2,"user_id":2,"client_id":2,"user_name":"test","file_path":"/storage/uploads/1606564547_home_loan_certificate_fy_2019_20.pdf","category":"housing_loan",&...
FrazeColder FrazeColder
5
Hi, I am working with spatie media library to store my images. On the frontend site I am using Quill editor with Vue js to give users the option to modify their posts. The users on the frontend also have the option to upload images. Those images get...
untymage untymage
1
Excuse me When we do queue:work Does laravel query every time in infinite loop to get new jobs ?...
mikimh mikimh
2
Hi I got Book, Author models and I am trying to query for single Book I got this: Book::with('author:id,name,surname' )->where('id', 1)->get(); This will return structure like: { "id":1, "author_id":31, "title":"text", "author":{ "id"...
EbrahemSamer EbrahemSamer
2
I wanna connect mydomain with two similar databases and when any change happen in any table in one of them, the same table in the other database should changes. Is there any way to get this done using PHP & MYSQL...
Tray2 replied
Solved
eliekhazzaka eliekhazzaka
7
class CreateUsersTable extends Migration { public function up() { Schema::create('users', function (Blueprint $table) { $table->id(); $table->string('name'); $table->string('email')->unique(); $table-&g...
EbrahemSamer EbrahemSamer
5
I am using TinyMCE Editor to write some articles But I am using posted data without any protection. when I store article data $content = $_POST['content']; I do not use filter_input(INPUT_POST, 'content') Because it converts html to string ... When I...
gavin_r gavin_r
3
As part of a seeder I'd like to create a specific user. If I do something like this: $user = new User(); $user->name = 'John Smith'; $user->email = '[email protected]'; $user->email_verified_at = now(); $user->password = '...'; $user->save(...
neomuckel neomuckel
3
Hello, is it better to learn only laravel and upgrade later to livewire and tailwindcss or does it make more sense, when i start with laravel jetstream from the scratch? i have only basic skills in html, php and mysql....
nikhil_lu210 nikhil_lu210
17
I'm trying to create backup from my system through Spatie Laravel Backup package. And I'm calling artisan backup:run command from my controller Artisan::call('backup:run');. But its not working. Can anyone please help me with this issue??...
chaudigv chaudigv
4
Using livewire $rules to validate date. protected $rules = [ 'start_date' => ['required', 'before_or_equal:' . Carbon::today()], ] gives error Constant expression contains invalid operations I even moved the initialisation to mount(), but it pro...
Čamo Čamo
1
$kernel = $app->make(Illuminate\Contracts\Http\Kernel::class); $response = $kernel->handle( $request = Illuminate\Http\Request::capture() ); I have a problem with long application loading. The problem seems to be in the code above in inde...
armingdev armingdev
1
Im trying to update my Homestead box to latest 11.4.0 with Ubuntu 20.04. I have destroyed my old virtual machine and removed old homestead box. I have checkout to branch 20.04, but now each time when I try to setup new box .. it still downloading Hom...
xiolog xiolog
9
Hello, everybody. I cannot solve the problem myself. I just started working with Livewire. I have a parent component (Vacancies.php): <?php namespace App\Http\Livewire; use Livewire\Component; use App\Models\Vacancy; use Livewire\WithPagination;...
eliekhazzaka eliekhazzaka
0
public function register(Request $request) { $validator = Validator::make($request->all(),[ 'name' =>'required', 'email' =>'required|email', 'password' =>'required', 'c_password' =>'required|same:password', 'imei'=>'required', ]...
docmojoman docmojoman
4
I’m just getting back to development after a long hiatus when I realized that I needed to upgrade my php from 7.1 in order to work with Laravel. I followed the steps found here : Upgrade to PHP 7.4 with Homebrew on Mac - stitcher.io as it seemed t...
Martin1182 Martin1182
4
Hi, could anyone help me? I can't connect to the backend of the application. I'm not getting any bugs just the store won't fill it with data. I checked the API via postman and there it's all ok the data is coming back with the app. I use Nuxt.js and...
eliekhazzaka eliekhazzaka
2
hey guys, what should be written in the controller to get the profile image of user using API and Laravel...
I am Using This package For Invoice but struck at some place....i don't know how to generate Unique Serial number for Every Order .......
Can anayone please help me....i want to load a blade file using ajax.......
mathewp mathewp
3
hi, I am using spatie permission. I want to delete a 'permission' from permission table. Before deleting, i want to check that whether this permission is linked with any 'role'. How is it possible. And if it is linked with any role , i want to stop t...
SilverGround SilverGround
1
Hi there, I would like to create a dynamic sidebar menu with a fontawesome icon on the left and the menu's name next to it. So far i've created a table named "sidebar_nav" public function up() { Schema::create('sidebar_nav', fun...
DDSameera DDSameera
14
I installed SSL in my production server . and i want to setup laravel application on it. I followed up this article https://robindirksen.nl/blog/laravel-redirect-to-https-a-middleware-to-force-https But its failed. here is my codes HTTPSProtocolMiddl...
alexsunny123 alexsunny123
1
Hello, I'm writing a Livewire component called Habits. I would like to test that the user only see the habits that belong to him. This is the current code of the render method. public function render() { return view('livewire.habit.index', [ 'habits'...
Deekshith Deekshith
1
Hi, I have a quiz listing with scheduled date and time like below, Quiz 1 will open on 28-11-2020 11:00:00 Quiz 2 will open on 29-11-2020 15:00:00 So once scheduled date crosses users will be able to open the quiz at any time. But the main problem is...
tallaljamshed tallaljamshed
2
here's the scenario.. A customer pushes a button to pay through paypal or paystack or flutter client side ajax sends request to server telling payment method .. (meanwhile waiting sign is shown) .. server decides amount and currency and returns back...
I got this error : Not Found (in large police and blue background) The requested resource /vue3m was not found on this server. But : my view exists : resources/views/vue3m/blade.php and my route also : php artisans route:list ... | | GET|HE...
sr57 replied
Solved
EMfinanga EMfinanga
2
I want to upload an excel file to my database, but my database tables have this structure $table->id(); $table->string('orderNumb'); $table->integer('customer_id'); $table->string('loading_point'); $...
DDSameera DDSameera
1
I run "php artisan migrtate run" command ., then i got new database . Now i download mysql database and upload it to server. i got this error #1071 - Specified key was too long; max key length is 767 bytes https://snipboard.io/6lYRH0.jpg...
Čamo Čamo
1
Hi, I have a controller with method expecting two parameters. First one $manufacturer is type hinted but second one $categroy should be raw string. class BrandController extends Controller { public function show(Brand $brand, $category) { ... }...
Čamo replied
Solved
dvdmeer dvdmeer
1
Hi, I am creating my own package but am currently stuck at some weird caching stuff. My custom package is copied into my sample project that I created with: composer create-project laravel/laravel --prefer-dist sample The package has the following f...
shuvobhai shuvobhai
1
<script type="module"> import Echo from '../../../node_modules/laravel-echo'; window.io = require('socket.io-client'); window.Echo = new Echo({ broadcaster: 'socket.io', host: window.l...
Create a New Discussion Button