Category : laravel-6

I am trying to upgrade laravel to version 6 to php 7.4. How can I change the composer (its content is below) so that it pulls the plugins of compatible versions necessary for the project? Compatibility errors occur when changing only laravel version how do I understand which versions of plugins to write in composer ..

Read more

When using Laravel 6.17 and upgrading to a newer version than 6.17, for example 6.18.43, the logged in sessions are all lost. All users have to authenticate again. When downgrading back to 6.17, all authentication sessions are restored. Is there a way to circumvent losing the authentication sessions while upgrading to the latest version? Source: ..

Read more

I received the message Too many login attempts. Please try again in -1608133896 seconds. and I cannot clear the issue. I have tried: php artisan cache:clear php artisan cache:config restarting everything multiple times trying to login with different user accounts (same error) disabled throttling in API middleware within Kernal.php changing timezone in php.ini What other ..

Read more

Hello i’m trying to display the authenticated user but i’m getting this error : Undefined variable: users (View: C:wamp64wwwBlanresourcesviewsusersindex.blade.php) this is my code : usercontroller : public function index() { return view(‘users.index’)->with(‘user’, Auth::user()); } the view : @extends(‘layouts.app’) @section(‘content’) <div class="card"> <div class="card-header"> Update Your Profile </div> <div class="card-body"> <table class="table table-hover"> <thead> <th>Image</th> <th>Name</th> ..

Read more

hello i have two tables users and profiles and i have a form to update the user profile, whene i try to update, it’s just refresh the page but nothing was updated, and there is no errors this is my code : ProfilesControllers: public function update(Request $request) { $this->validate($request,[ ‘name’=>’required’, ’email’=>’required|email’, ‘about’=>’required’, ‘facebook’=>’required|url’, ‘instagram’=>’required|url’, ]); ..

Read more

I am using resource collection in Laravel, but it seems like the method toArray is never called. I have a resource collection <?php namespace AppHttpResources; use IlluminateHttpResourcesJsonResourceCollection; class MyCustomResourceCollection extends ResourceCollection { public function __construct($resource) { // dd(‘construct’); parent::__construct($resource); } /** * Transform the resource collection into an array. * * @param IlluminateHttpRequest $request * ..

Read more

I need to add two numbers passed by the foreach in the blade view how can i add this two numbers instead of showing it as individual 333.34 333.34, I need to show it as 666.68 / 1000 AUD Here’s how blade foreach looks like @if(!empty($teams)&&count($teams)>0) @foreach($teams as $key=>$team) <table> <tr> <th>id</th> <th>Team Name</th> <th>Payment</th> ..

Read more

When I display the name of table using the id of another table in Laravel I declare like this. But when I want to get the id to edit, the error is like the title. Please help me, I am very grateful. Controller public function manage_departments(){ $manage_departments=DB::table(‘departments’) ->join(‘faculties’,’faculties.id’,’=’,’departments.faculty_id’) ->orderBy(‘departments.created_at’,’desc’)->get(); $all_manage_departments=view(‘admin.manage-departments’)->with(‘manage_departments’, $manage_departments); return view(‘layouts.master’)->with(‘admin.manage-departments’, $all_manage_departments); } ..

Read more

i want to ask something… how to separate specific data on datatables ? filtered by SKU number. I wan to make 2 tables instead SKU Produk SKU Code = "11——-" is for table 1 SKU Code = "33——-" is for table 2 Produk-Image @extends(‘layout.master’) @section(‘title’, ‘Daftar Produk’) @section(‘parentPageTitle’, ‘Produk’) @section(‘page-style’) <link rel="stylesheet" href="{{asset(‘assets/plugins/jquery-datatable/dataTables.bootstrap4.min.css’)}}"/> <link rel="stylesheet" ..

Read more

Using the great software architecture Lucid in my application, I need to provide some authorization logic. I have an operation AuthorizeOperation, which contain step by step flow with jobs calling. Schematically the operation content looks like: run GetLocalAuthorizationDataJob … run GetRemoteAuthorizationDataJob … run CalculationJob … The [email protected] method finally returns results of remote data source ..

Read more