#### Category : laravel-7

I have 2 commands in my Laravel 7 Schelduler $schedule->command(‘inspire’)->everyMinute()->emailOutputTo(env(‘MAIL_TO’));$schedule->exec(‘whoami’)->everyMinute(); ✅ The first one works perfectly, I get the email ❌ This second one doesn’t work at all $schedule->exec(‘whoami’)->everyMinute(); I followed: https://laravel.com/docs/7.x/scheduling Any hints for me ? Sourc.. Read more I’m on Laravel 7, and I followed this https://laravel.com/docs/7.x/scheduling and did this$schedule->command(‘inspire’)->everyMinute()->emailOutputTo(env(‘[email protected]’)); $schedule->command(‘contact:clean’)->everyMinute()->emailOutputTo(env(‘[email protected]’)); I ran this app2020 php artisan schedule:run and get this Running scheduled command: ‘/usr/local/php5-7.3.8-20190811-205217/bin/php’ ‘artisan’ inspire > ‘/Users/app/Sites/app2020/storage/logs/schedule-7c649d5e8c778c3791224941d519342306721dac.log’ 2>&1 Running scheduled command: ‘/usr/local/php5-7.3.8-20190811-205217/bin/php’ ‘artisan’ contact:clean > ‘/Users/app/Sites/app2020/storage/logs/schedule-970eece0284bc3f5e59410e7b76e16920bbcaf5c.log’ 2>&1 and saw no emails coming in to my Mail Did I miss anything .. Read more I am attempting to make custom auth roles for a site, i have followed another stack overflow post that seems to get it working but mine always fails, i know the information exists since im dumping and dying the information to screen once Auth::guard fails. The problem is that even though the information exists auth .. Read more What is the easiest and fastest way to upgrade code from Laravel 5.3 to Laravel 7.3 or 8 ? Is there a tool which can do that for me ? How long does it take to do that? Please help . Regards Sourc.. Read more I am using Eloquent ORM and I have Book model which connect to BookCategory model and BookCategory connect to Category. The l’m problem facing is how to include data from third table in eloquent relationships? Book id name Category id name type BookCategory id book_id category_id Sourc.. Read more I am trying to edit a user page on anchor tag click. Well its redirect to edit page on anchor tag click. The problem is when I try to a click link(menu) to other page from edit page.The edit page has one parameter that is id of the record and when I try to redirect .. Read more Let’s say we use the same table schema for saving purchased products of orders for website A and B. Databases for A and B locate in different servers. So 2 database connections are defined. CREATE TABLE order_products ( id int(11) NOT NULL AUTO_INCREMENT, order_id int(11) NOT NULL DEFAULT ‘0’, product_id int(11) NOT NULL DEFAULT ‘0’, .. Read more I have just install package from github. i want my input form in blade can get validation. when user enter wrong validation, error message will appear. i’m new in laravel 7. I need help. this is link for package i want use this is my input at blade <input id="icpenjawat" type="mykad" pattern="[0-9]+" maxlength="12" class="form-control @error(‘icpenjawat’) .. Read more I did an autocomplete search function in Laravel using ajax. I tried to pass the route inside the href but it’s working. I don’t know how to pass the route in the controller. Please help me and give a solution on how to fix this.$output = ”; if (count($pro)>0) { foreach ($pro as $row) .. Read more this is code from laravel API public/index.php file.$kernel = $app->make(IlluminateContractsHttpKernel::class);$response = $kernel->handle($request = IlluminateHttpRequest::capture() ); $response->send();$kernel->terminate($request,$response); When sending a request it returns without any data and with status code: 200 just from $kernel->handle. When I print dd(‘111′); before$response = $kernel->handle($request = IlluminateHttpRequest::capture() ); it is shown in request’s ..

I’m building a small validator for my form with laravel 7 and i needed a custom logic to be added after the standard validation so I used the after validation hook as in doc. My issue is not with the logic of the controller but the fact that after the validation occur and I add ..

I have just install package from github. i want my input form in blade can get validation. when user enter wrong validation, error message will appear. i’m new in laravel 7. I need help. this is link for package i want use Sourc..

Where i can import this code const mykad = require(‘mykad’) from this package in to my laravel 7 project. and how to code in blade in input form. Sourc..

I have an issue with display updates when updating quantities. I have left/right arrows next to a number in a table to allow the user to change the value of the number, like this: When the user clicks the left button, a Livewire action triggers that removes an association from a belongs-to-many relationship. When the ..

I’m sending around 7k emails using Laravel and SES. Because I have a limit of 10 emails per second I need to delay when Laravel is sending all the emails in batches of 10 at a time. Controller public function queue(){ $invites = Subscriber::all();$send_at = now(); foreach ($invites as$i => $invite){ if($i % ..

I am trying to install this HRM but it does not work, I have always an error when I am using installation.( When I am trying to open Public folder ). I tried different versions of PHP. I use Easy PHP. If some would give me an advice or help me, I would appreciate it ..

I’m currently using the Laravel 7 authentication in my application; and I want to change the users table name while keeping its role as it is in the authentication logic.. because we have already an users table in our main app, so we have working in another dashboard and users table of the new app ..

I had received a SQL dump file for an existing database There is a table with date_from and date_to columns they are both type timestamp but date_to column has a default value of "0000-00-00 00:00:00". and when trying to add softdeletes to this table like following : Schema::table(‘gamesessions’, function (Blueprint $table) {$table->softDeletes(); }); i ..

Morning! I’m programming a laravel 7 multitenancy project using hyn package version 5.6 For now i have a principal app (localhost) and a subdomain (tecnotienda.localhost). But when i route them it ussually overlaps, i mean: it just shows the principal or just shows the subdomain. This is my routes/web.php <?php use IlluminateSupportFacadesRoute; use AppHttpControllersReportController; /* ..

I am new **in laravel 7.**Please help my project. i get this message Installation failed, reverting ./composer.json to its original content. in my project terminal. this is package project Sourc..

I am new in laravel 7. i have follow this instruction in this (https://github.com/telcolab/mykad/tree/1.2.4) but my laravel 7 send this message Installation failed, reverting ./composer.json to its original content. Sourc..

trying to define a model mutators <?php namespace App; use IlluminateDatabaseEloquentModel; class Custom_fields extends Model { protected $table = ‘custom_fields’; public function set_contentAttribute($value){ return unserialize($value); } } accessing the field _content and unserialize the value of the field so I can get an array automatically on retrieve but seems not working. Any help, ideas? Source: .. Read more I ran this query$data = Visitor::where(‘created_at’, ‘>’, now()->subWeek())->get()->pluck(‘created_at’); dd(\$data); I got this IlluminateSupportCollection {#521 ▼ #items: array:72 [▶] } I have 72 visitors since last 7 days. How do I modify my query to get something like this ? Note 0-6 day of week, sunday(0) & saturday(6) { 0:10, 1:10, 2:10, 3:10, 4:10, 5:10, ..