Data dodania Pytanie
2017-05-18 19:05 Get average from nested eloquent relationship »
I would like to calculate average from nested relationship between eloquent models. So, let's say, I have 3 tables called programs, activities and sta...
(1) odpowiedzi
2017-05-18 17:05 Laravel file download - php_fileinfo extension not enabled »
I'm using Laravel 5.4.13 with PHP 7.1 and I migrated to a shared hosting. I'm trying to make the website work, but I'm unable because of a missing ext...
(1) odpowiedzi
2017-05-18 09:05 laravel 5.4 Vue Component not workng »
I have a Chat-User.vue file in components like <template lang="html"> <div class="chat-user"> <a href="#" class="close" v...
(2) odpowiedzi
2017-05-18 03:05 Laravel dynamic controller route »
I use Laravel 5.4 and now I want to make dynamic route to controller which mean I can access UserController and Profile function throw route directly,...
(1) odpowiedzi
2017-05-18 01:05 How to make my SQL query search several words in the sentence even if they do not follow each other »
I have a SQL query for my search form. $term = $request->get('term'); $queries = Article::where('title', 'LIKE', '%' . $term . '%')->publishe...
(3) odpowiedzi
2017-05-17 20:05 Make Laravel / PHPUnit remember all requests done »
I use Laravel and PHPUnit. In my tests, I have a lot of requests which tend to test my REST-like API, and it's doing the job quite nicely. Now I wonde...
(1) odpowiedzi
2017-05-17 20:05 How to to handle token mismatch exception in laravel post ajax? »
In my Laravel 5.4, I use the following code in my ajax using jQuery: $.ajax({ url : 'http://example.com/addmember', ...
(2) odpowiedzi
2017-05-17 15:05 How can I solve "Type error: Argument 2 passed to ... must be an instance of Symfony\Component\HttpFoundation\File\UploadedFile"? »
My controller is like this : public function store(CreateProductRequest $request) { ... $result = $this->product_service->createProduct...
(1) odpowiedzi
2017-05-17 14:05 Laravel Send URL parameter as hidden input »
I'm confused or been to much in the sun, I have the following situation when editing a product http://app.dev/shops/1/products/2/edit I added th...
(3) odpowiedzi
2017-05-17 12:05 Select and update table columns without ID in laravel »
I'm trying to make page in admin panel from where the admin can change site settings such as: site title, default country etc. I've created table in...
(2) odpowiedzi
2017-05-16 18:05 Laravel enable csrf protection on api middleware »
I'm working on Laravel 5.4 and my routes are in the api middleware I see that I need to transfer my routes to the web middleware, but I need them to ...
(3) odpowiedzi
2017-05-16 17:05 How does Laravel schedule mails for later sending? »
The Laravel Documentation describes the ability to schedule a mail for later delivery, with the following example: $when = Carbon::now()->addMinut...
(1) odpowiedzi
2017-05-16 14:05 Laravel how to create empty relationship? »
I have a condition inside a relationship where if the user is logged in it will return the relation and if not i want it to return empty relationship....
(1) odpowiedzi
2017-05-16 13:05 When not or should use get() in Laravel 5 »
I need to understand when/not to use get(); in Laravel 5. PHP warning: Missing argument 1 for Illuminate\Support\Collection::get() Google shows...
(5) odpowiedzi
2017-05-16 12:05 How to get nearby courts from given lat long in laravel? »
I want to get basketball courts on basis of given lat long in eloquent ORM. I tried to get that but here I got this error. Call to undefined function...
(2) odpowiedzi
2017-05-16 05:05 ovveride login Authentication in laravel »
my laravel version is 5.3. I'm using built-in Authentication in laravel to login users. there is a column name in user table as status. when it is 0 ...
(1) odpowiedzi
2017-05-15 21:05 laravel multiple domains csrf tokenmismatch »
Im building a system with two domains (sub1.domain.com and sub2.domain.com). These two domains use the exact same system. The only reason i use two do...
(0) odpowiedzi
2017-05-15 20:05 How to make this SQL query with Laravel? »
I'm null in SQL. I have two tables works and types. works contain a foreign_key type_id which references a work type (in my DB, this is the ID of a...
(2) odpowiedzi
2017-05-15 19:05 laravel project failed to load font awesome boilerplate »
I install laravel boilerplate and when start project , he don't load font-awesome, why ? ...
(1) odpowiedzi
2017-05-15 19:05 How to send two different emails on one button click using Laravel »
I am trying to send two emails at the same time when the user submits contact form. One email to the website owner and other to the user as autorespon...
(2) odpowiedzi
2017-05-15 18:05 Mysql Left Join with Group By and Between »
I am having trouble to create a select query that will retrieve all users id that isn't in the games and availability between dates. Example: Retri...
(2) odpowiedzi
2017-05-15 09:05 How to return array object in query scope method of a model class »
I'm new to Laravel. I use laravel 5.4. I want to make my query scope method in a model class return an array object. But, it seems that it returns ...
(1) odpowiedzi
2017-05-14 19:05 errno: 150 "Foreign key constraint is incorrectly formed" - bigIncrements »
I got this error when I change I to bigIncrements: .`products` (errno: 150 "Foreign key constraint is incorrectly formed") my code: public functio...
(1) odpowiedzi
2017-05-14 19:05 Custom file name while keeping extension »
Following this part of the docs: https://laravel.com/docs/5.3/filesystem#file-uploads I'm trying to store a file (an image) and specify a custom fil...
(2) odpowiedzi
2017-05-14 02:05 Optimize Multiple database update »
I am using laravel in my app. So now I need to update many rows on DB once a day with Cron job. If I will use the update option built-in laravel I ne...
(1) odpowiedzi
2017-05-13 18:05 Passing 3 parameters from controller to view Laravel »
I am trying to pass 3 parameters from the controller to the view. For some reason i can only send 2 parameters and it gives an error saying Undefi...
(2) odpowiedzi
2017-05-13 13:05 Do something if any operational parameter is set in Laravel »
I am using this Route for optional parameters: Route::get('/{place?}/{day?}', 'Weather@fetch_weather'); I want the controller to execute a code if ...
(0) odpowiedzi
2017-05-13 09:05 Selected autocomplete value not displaying in input box »
I am using jquery ui autocomplete and the values were displaying but when i select a value from the list it is not displaying inside the input box.. I...
(2) odpowiedzi
2017-05-13 06:05 How to set Null to the related table record on soft delete in Laravel5 »
I'm new to Laravel. I have two tables related to each other. I want to set null to the related table record when the other related table record is s...
(2) odpowiedzi
2017-05-12 22:05 Problems when extract ZIP file in PHP »
I'm trying to extract zip file to some folder in storage_path (I'm using laravel). But I don't know why they comes with .(dot)files when it extracted,...
(1) odpowiedzi
2017-05-12 19:05 ErrorException in HasRelationships.php »
Im gettings this error, but i'm not sure is it because of the relationship or something else? Error ErrorException in HasRelationships.php line 487:...
(1) odpowiedzi
2017-05-12 10:05 Further understanding about namespace in php and laravel »
I am currently learning laravel framework and most of the time it's using namespace, and to further my understanding about namespace I read articles a...
(1) odpowiedzi
2017-05-12 00:05 Laravel - Confusion between routes and middleware and VueRouter »
I'm using Laravel 5.4 and Vuejs 2.3 along with VueRouter I have a website that consists in two parts example.com example.com/tools For the explan...
(1) odpowiedzi
2017-05-11 22:05 Laravel show latest post on homepage »
I'm trying to display the latest post, posted on my website. I have a vague idea of how it needs to be done but I'm not 100% sure. I think I need to d...
(1) odpowiedzi
2017-05-11 15:05 Laravel delete item from table list / db »
I am trying to delete item from a generated table of items which are from a database table. My Route: Route::delete('destroy/{deviceID}', ['as' =&gt...
(3) odpowiedzi