Data dodania Pytanie
2017-05-27 14:05 Json decode when I iterate with forearch in laravel 5.2 »
So I have a table called Categories and this is his Seeder file: SubCategories::create(array( 'id' => '1', 'category' => 'Books...
(1) odpowiedzi
2017-05-27 08:05 Picture upload returns 500 in laravel 5.4 »
I have api based image upload feature. I uploaded the project in a subdomain. My js(angularjs) : var data = new FormData(); data.append...
(3) odpowiedzi
2017-05-27 02:05 Change database field at specific time »
I'm working on a laravel API and want to activate the users after registration for a month (free trial) then to deactivate them at the end of the mont...
(3) odpowiedzi
2017-05-26 10:05 Amazon SES 403 Forbidden SignatureDoesNotMatch using Laravel 5.3 »
I am using Laravel 5.3, EC2 and SES to send emails. config/mail.php 'driver' => env('MAIL_DRIVER', 'smtp'), 'host' => env('MAIL_HOST', 'smtp.m...
(1) odpowiedzi
2017-05-26 10:05 Laravel Call to undefined method Illuminate\Database\Query\Builder::post_images() »
I am trying this Query in Laravel 5.2 User::with(['posts']) ->withCount('post_images') ->orderBy('post_images_count', 'desc') ->take(8...
(1) odpowiedzi
2017-05-26 09:05 Laravel — Loop all data from multiple tables »
Good day. I have researched about it, but nothings matched with my problem. Here's the scenario. I have courses table, and 3 more tables, assignments,...
(1) odpowiedzi
2017-05-25 16:05 In Laravel 5, how do you dump variables on vue enabled templates? »
Prior to vue being part of Laravel, I would often debug by simply using {{ dump($var) }} Doing so now throws an exception within javascript as Vue do...
(1) odpowiedzi
2017-05-25 12:05 Laravel 5.4 - @extends not working »
I have two main views in Laravel. Both are called as follows, in web.php: Route::get('/characters', 'CharacterController@index'); Route::get('/chara...
(2) odpowiedzi
2017-05-25 11:05 InvalidArgumentException Please provide a valid cache path Error laravel 5.2 »
I'm working with Laravel 5.2 and i have an error when i run composer update or artisan optimize .. i've searched on my vendor, i didn't found compil...
(1) odpowiedzi
2017-05-24 18:05 Laravel 5.4 eloquent using with and where »
I want to get Data if join table not null so i do a query like this $projects = Project:: with(array('owner'=> function($query) use ...
(1) odpowiedzi
2017-05-24 13:05 Mix/version images in Laravel 5.4? »
I want to use mix on a set of images. First I copy them: mix.copy('resources/images', 'public/images'); Then version: mix.version(); The above d...
(0) odpowiedzi
2017-05-24 02:05 Laravel 5: Dynamic Array in Request »
I have a table consisting of three input values and an "Add" button. When the "Add" button is pressed, the input values are "saved" into the row, and ...
(2) odpowiedzi
2017-05-23 20:05 Don't execute text file code on response()->file() »
In one of my Controllers I am returning a file to the user using the response()->file() function. This function displays images if its a .png,.jpg ...
(1) odpowiedzi
2017-05-23 12:05 Laravel eloquent orm query using orwhere clause »
Hi I have been using this query to retrieve data based on orWhere clause $q->where('created', $date); $q->where(function ($query) { $query-&g...
(2) odpowiedzi
2017-05-23 12:05 Recursion as per condition to n level »
Here is my single database structure. I have one array which I will export in one file by var_export. This is sample array, return [ 'menus' ...
(0) odpowiedzi
2017-05-22 18:05 Laravel, Vue Livesearch - after Ajax response issue »
I'm facing probably a trivial issue but I'm looking around since two days and i can't figure out a solution by my self. I want to create a Livesearch,...
(1) odpowiedzi
2017-05-22 13:05 Check if input is from console »
I want to share a variable of my views with: class AppServiceProvider extends ServiceProvider { /** * Bootstrap any application services. ...
(2) odpowiedzi
2017-05-22 12:05 How to check two input is already exist in laravel? »
I have roles tables. When storing new data in roles table I need to check role_name and role_id is already exist. How can check in laravel? id rol...
(4) odpowiedzi
2017-05-21 15:05 Laravel 5.4 Cookie Value »
I am trying to get the value of a cookie. 1 When I use Laravel's request cookie helper: $request->cookie('CookieName'); Laravel returns the co...
(2) odpowiedzi
2017-05-21 14:05 How to use in laravel 5.4 local scope in a relation call? »
I use in my project laravel 5.4 and have 2 models, first model is Group and second model ist Ticket. In model Group I have following relation: publi...
(3) odpowiedzi
2017-05-21 03:05 Queuing Guzzle Requests With Limits »
I'm working on a Laravel application, using Guzzle 6. A lot of functionality relies on an API, of which I've created a wrapper for. My wrapper's a si...
(2) odpowiedzi
2017-05-20 20:05 Laravel 5.4 Gates and policies : Can policies overwrite Gates? »
The UserPolicy seems to overwrite the gates i've made. Explanation : in the AuthServiceProvider below, when i comment out the line User::class =>...
(0) odpowiedzi
2017-05-20 18:05 How to pull second child table data using eloquent »
I have three tables which is connected like. packages(parent) -> routes(child) -> items(grandchild) i have to find all items with package id ...
(1) odpowiedzi
2017-05-20 09:05 Do I need to switch Laravel to Symfony? »
I have the same question about my current project. Project type: Something like shopping cart SDK. Models: 30+ (with extensions) Extensions: 15+ T...
(3) odpowiedzi
2017-05-19 18:05 Removing default migrations from Laravel »
After creating a new Laravel project with laravel new, there are a couple of migration files in the database > migrations folder: 2014_10_12_00000...
(2) odpowiedzi
2017-05-19 10:05 Laravel maximum execution time error when trying to open .txt file »
I have a .txt file with countries and their codes and I want to get the contents from it and insert into the database. But when why try to open the fi...
(1) odpowiedzi
2017-05-19 07:05 Laravel Eloquent - how to join a table »
I working on an API for my app. I'm trying to pull items from the database and return them in JSON object, my items table looks like this: Items -id...
(2) odpowiedzi
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 10:05 Multiple Laravel Eloquent Relationship »
I got stacked in laravel eloquent relationships. Here's the scenario: I have 4 tables in my database:     Categories,  &nbs...
(1) 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-17 23:05 Eloquent Bulk insert in MySQL using firstOrCreate function? »
How could I bulk insert in MySQL using firstOrCreate function on Laravel? I am sending data through RESTfull API My Model: { "hashtags": [{ ...
(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 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-17 00:05 Laravel 5.4 : 500 Internal Server Error when accessing localhost API »
i tried to call localhost API in my application using guzzle, but i got this error: ServerException in RequestException.php line 111: Server error: ...
(2) 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