Data dodania Pytanie
2017-12-09 20:12 Cannot declare class 'TestCommandRun', because the name is already in use »
I am using laravel 5.4. I am using php artisan list, but get the following error: C:\Users\admin\Desktop\Coding Projects\demo_laravel>php artisan...
(1) odpowiedzi
2017-12-09 14:12 How to set global variables from database in Laravel 5.4 »
I'm facing the same problem very often in various projects - I need to set some global variables from database and be able to receive them in anywhere...
(4) odpowiedzi
2017-12-09 11:12 Error : Trying to get property of non-object »
I have table Authors and table Uploads and I am simply trying to get all uploads for a certain author by author_id in the Uploads table. For that pur...
(1) odpowiedzi
2017-12-08 13:12 Condition in controller laravel »
I have this code in my Laravel controller public function index($id=false) { //get resto by name $resto_nom = DB::table('restos as r') ...
(1) odpowiedzi
2017-12-08 11:12 Laravel 5.5 BelongsToMany returns empty »
I'm trying to use a belongsToMany relation, i never had any problems with it but for some reason it returns empty. I've set up my relation in the Sto...
(1) odpowiedzi
2017-12-08 09:12 how to change row height in FullCalendar? »
this is my controller $calendar = Calendar::addEvents($events) ->setOptions([ //set fullcalendar options 'firstDay' => 1...
(1) odpowiedzi
2017-12-07 15:12 Laravel Sold Items Count »
I want count the Sold items for every Seller. I try to change this Code: <?php $count = DB::table('purchases')->whereIn('seller_id', [4])->c...
(2) odpowiedzi
2017-12-07 13:12 Laravel 5.5 global variable in template from service provider »
How can I get info about logged user in service provider? When I use this in my template {{ $test }} always return 0 but i'm 100% sure that im logged ...
(2) odpowiedzi
2017-12-07 12:12 Best way to exclude results from a big db query in Laravel 5.2 »
I'm using Laravel 5.2 to build a big product inventory and I'm having trouble with the query that will show the products. Here's the example: I have ...
(1) odpowiedzi
2017-12-06 22:12 Having another Where Filter on Laravel »
I am trying to do a search and would only like to return the users with status of 1,4. Although when I try to use this, it grabs them all and ignores ...
(3) odpowiedzi
2017-12-06 13:12 Route to URL helper default parameters »
I am using the code found here https://laracasts.com/discuss/channels/laravel/how-to-prefixing-in-routes-for-localization to prefix my routes with a l...
(2) odpowiedzi
2017-12-06 09:12 Laravel auth::atempt get only hashed password »
I've created account's in CRM and hashed password in it. $account->password = bcrypt($password); then on my web site I've created some guard and...
(1) odpowiedzi
2017-12-05 20:12 Laravel eloquent chunk does not work »
I have tried the following in laravel-5.4 application to use chunk: $out = []; \App\User::chunk(5,function($users) use($out){ foreach($users as $u...
(2) odpowiedzi
2017-12-05 18:12 Laravel delete all belongsToMany relations in belongsToMany relation »
I have a Tournament model which contains a belongsToMany relationship with a Session model: class Tournament extends Model{ public function sess...
(2) odpowiedzi
2017-12-05 07:12 Accessing Model Through Custom Class »
I'm trying to access a model through a class. I'm trying to get this done on a Laravel 5.5 installation. The folder structure is the default except fo...
(2) odpowiedzi
2017-12-04 14:12 Laravel 5.5 render a React component in a blade view with data from the controller »
My goals is to be able to do something like this in my blade view. <Example name="{{ $user->name }}" /> But this doesn't render anything. ...
(1) odpowiedzi
2017-12-04 14:12 VueRouter is not defined »
I have a laravel project and want use Vue.js for frontend. But i have never used something more complicated than jquery. I can't run vue-router. In ...
(2) odpowiedzi
2017-12-04 09:12 how to prevent undefined property when only one record found in Laravel »
I was try to make a search function so i'm doing like this: public function search(Request $request) { $query = $request->query('q'); $po...
(3) odpowiedzi
2017-12-03 22:12 Laravel 5.5 Resource Controller and Dependecy Injection »
I am working on a Laravel 5.5 application. When I use php artisan make:model SomeModel -mr it creates the model, migration and resource controller. I...
(3) odpowiedzi
2017-12-03 21:12 Laravel: Relation between three model »
I'm doing a project where every user can be assigned in a designation. I did my work by using three model: User, Designation & UsersDesignation ...
(2) odpowiedzi
2017-12-03 16:12 Retreiving and displaying a single record from database in laravel »
I have two methods in my controller. The first is called uploads and it displays all the records from a DB table, it looks like this : public func...
(3) odpowiedzi
2017-12-02 21:12 Phpunit testing Laravel controller »
I'm building a small Laravel application and I would like test it using phpunit. Is a very simple application with one controller: namespace App\Http...
(1) odpowiedzi
2017-12-02 09:12 How to access varible inside orWhere() in laravel query builder|Laravel »
I am trying to build little complex query where everything wan OK until I tried to use a advanced where condition. In the code below I am getting an e...
(2) odpowiedzi
2017-12-02 00:12 Laravel Eloquent cannot assign a value to the model's relation property »
I am unable to assign a value to a model's property App\person::find(1)->plan This command gives me something like this in artisan tinker ...
(2) odpowiedzi
2017-12-01 22:12 Laravel - Download specified list of images from S3 into a directory »
I have been searching around but cannot find any information. Currently have a list of images on my page and each have a download button which is jus...
(1) odpowiedzi
2017-12-01 16:12 Laravel 5.2 Array to string conversion error form »
My working project simple form, but I get the error: ErrorException in 350957ec60e1dd25a26f206394651974bb23e6b7.php line 40: Array to string con...
(1) odpowiedzi
2017-12-01 14:12 Undefined variable: request in sub method »
When I try to get all the records that have a relation to the category table, where the category_definition_id is the search input, I cannot access th...
(2) odpowiedzi
2017-11-30 10:11 MySQL: Specified key was too long; max key length is 767 bytes »
I'm creating a development version of a Laravel 5.4 application, which is working, albeit without a complete database. When I ran php artisan migrate...
(1) odpowiedzi
2017-11-30 08:11 What is the concept behind using "use" keyword in different context on laravel? »
I have two queries regarding the use of "use" keyword in php(laravel). Below is a code excerpt from laravel docs: use App\Flight; $flights = App\Fl...
(2) odpowiedzi
2017-11-30 06:11 Laravel / Eloquent - Prevent "deleted_at" Column From Being Returned by get() Method »
I have a model that looks like: <?php namespace App\Models; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\SoftDelet...
(1) odpowiedzi
2017-11-29 20:11 How to filter results in Laravel using Eloquent Models »
I am attempting to use the following $orders = \App\Order::with([ 'Customer' => function ($query) use ($filterFirst, $filterLast, $filters...
(1) odpowiedzi
2017-11-29 12:11 Require Laravel query explanation »
Can anyone explain me what does IF(transactions.retail_cost > 0,1,0) means from the below query ? $query = Distributors::selectRaw( "distribu...
(1) odpowiedzi
2017-11-29 06:11 Can Laravel 5 handle 1000 concurrent users without lagging badly? »
I wanted to know that if 1000 users are concurrently using a website built with laravel 5 and also querying database regularly then how does laravel 5...
(0) odpowiedzi
2017-11-28 16:11 Try upload videofile »
I use Laravel 5.4 and I try upload video file. Image file upload successfully. $video = Request::file('video_file')) { $fullName = 'videos/'....
(2) odpowiedzi
2017-11-28 13:11 Laravel 5.5 not found class with correct namespace »
My ./app folder looks like: +-- app +-- Classes +-- Events +-- EventBase.php +-- EventX.php There's nothing secret wi...
(2) odpowiedzi