Data dodania Pytanie
2017-02-18 21:02 How do I get the value of multiple IDs in a Laravel API request »
I have Laravel acting as an API serving a request from an Emberjs app. The app requests multiple ID's vipExperiences?ids=6&ids=4 In my Larave...
(1) odpowiedzi
2017-02-18 07:02 Error in Object injection »
I am working on a Laravel 5.4 Project. I am facing an issue. I would like to know more about the issue. Below code is working. PostController.php ...
(1) odpowiedzi
2017-02-18 06:02 Route [signup] not defined in laravel »
I am new to Laravel. I am learning how to create user registration page. Everything works fine but I am stuck in a simple problem. ErrorException...
(3) odpowiedzi
2017-02-17 16:02 Authorization from model »
I have a Board.php model with a method checkViewAccess() i.e @if($board->checkViewAccess()) render board @endif It does a few checks, and o...
(1) odpowiedzi
2017-02-17 14:02 Laravel Polymorphic relationship getting different models »
I have a Laravel model called "Area" which contains "Elements". Elements can be different Models (in this case a FreetextElement and a CheckboxElement...
(1) odpowiedzi
2017-02-17 11:02 Save select value onchange Laravel »
I am building a multi language app with Laravel, and I need the users to be able to log in and select their preferred language(table "languages") from...
(3) odpowiedzi
2017-02-16 23:02 file_put_contents(.../bootstrap/cache/services.json): failed to open stream: No such file or directory »
I kept getting this error when running any php artisan commands. [ErrorException] file_put_contents(/Applications/MAMP/htdocs/code/bheng/md-b...
(1) odpowiedzi
2017-02-16 14:02 How to compare a string value to another string value? »
I have a problem in comparing a string of single word to another string within a sentence or phrase.I want to get the whole string from address if the...
(1) odpowiedzi
2017-02-16 10:02 Laravel Update Route »
Laravel newbie here, I want to create an update route in Laravel, without the resource controller. I have the route for the editing Route::get('/ind...
(1) odpowiedzi
2017-02-15 17:02 What is the best way to cleanly emogrify a Laravel blade template file? »
I'm using an emogrifier to format the results of a blade template so I can send it in an email. $html = View::make('emails.notification', [ 'dat...
(1) odpowiedzi
2017-02-15 14:02 You can have your API and eat (consume) it in Laravel? »
I have made an API that returns json in Laravel. (routes/api.php) Now I want to consume said API inside my web-side of the project (routes/web.php (i...
(1) odpowiedzi
2017-02-15 09:02 Laravel Migration Error : Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes »
Migration error on Laravel 5.4 with php artisan make:auth [Illuminate\Database\QueryException] ...
(2) odpowiedzi
2017-02-14 19:02 Call to a member function count() on array in "laravel backpack crud" after update from 3.1.54 to 3.2.3 »
I have build my admin panel with laravel backpack packages.Last night I had run composer update which updated my backpack-crud package from 3.1.54 to ...
(1) odpowiedzi
2017-02-14 16:02 Laravel 5: Alternative for Eloquent's 'orWhere' method for querying collections »
So I have a collection of products ($this->products) which I'm getting as a result of a Model query and I want to filter it by some of its attribut...
(2) odpowiedzi
2017-02-14 03:02 Laravel Migration table not created »
I am a new learner of Laravel.And I follow the tutorial to create a articles table.Here's part of my code in /database/migrations/2017_02_13_145946_cr...
(1) odpowiedzi
2017-02-13 20:02 Nested hasMany eager loading Laravel function »
Current logical setup: A room can have many objects. An object can have many scores. -- The problem is that the objects may/may not have any sc...
(1) odpowiedzi
2017-02-13 17:02 using form input value in form action, Laravel 5.4 »
I've written some code to retrieve some data from database when a user visits a url. For example, When someone visits this : http://localhost:8000/h...
(1) odpowiedzi
2017-02-13 07:02 Create an subquery alias to use it in Laravel Query Builder »
I want to create something like an alias to SQL subquery so I can use it like a plain SQL field. For example, I've got 3 tables: user, user_comments a...
(1) odpowiedzi
2017-02-12 23:02 Query Queried Table Laravel »
I was wondering if we could query already queried table. Like this: $results = Table::where('name','like', '%'.$request['name'].'%')->get(); $resu...
(1) odpowiedzi
2017-02-12 21:02 Elequoent relationship is not selecting releated rows »
I have 2 tables: products and images Products table: CREATE TABLE `products` ( `id` int(10) UNSIGNED NOT NULL, `created_at` timestamp NULL DEFAU...
(1) odpowiedzi
2017-02-12 12:02 view cannot access variable defined in controller in laravel »
I could not think how to write question for this problem. So this is my problem. I have two views store-side-menu.blade.php <a href="javascript...
(1) odpowiedzi
2017-02-11 18:02 Difference between {!! !!} and {{}} »
I am curious between the difference between {!! !!} and {{ }} In laravel, Model-View-Controller it is used in View where the user declare the variabl...
(1) odpowiedzi
2017-02-11 18:02 Auth::user() returns null Laravel 5.1 oauth 2.0 »
I know this may seem duplicated. I have already checked these threads: https://laracasts.com/discuss/channels/laravel/authuser-returns-null-in-larav...
(1) odpowiedzi
2017-02-11 15:02 Laravel 5.4 redirection to custom url after login »
I am using Laravel Framework 5.4.10, and I am using the regular authentication that php artisan make:auth provides. I want to protect the entire a...
(1) odpowiedzi
2017-02-10 18:02 MethodNotAllowedHttpException not found when I paginate in Laravel »
Hello this is my first question here. I am using php laravel framework and I am getting this error MethodNotAllowedHttpException in RouteCollection....
(2) odpowiedzi
2017-02-10 13:02 Difference between Request (Facade) and Illuminate\Http\Request »
I'm starting to use Laravel and I would like to know how I should choose one over the other. As of version 5.0 Laravel documentation changed request...
(2) odpowiedzi
2017-02-10 10:02 What is the best practice for adding constants in laravel? (Long List) »
I am rather new to laravel. I have a basic question, What is the best way to add constants in laravel. I know the .env method that we use to add the ...
(2) odpowiedzi
2017-02-09 23:02 Laravel 5 error SQLSTATE[HY000] [1045] Access denied for user 'forge'@'localhost' (using password: NO) »
Sometimes (about every 20 request) I get this error. But the next (next second), the same request, is fine. I dont know why it failed the first one. S...
(1) odpowiedzi
2017-02-09 14:02 How do i access data using two BelongsTo? »
I have three tables - "courses", "lessons" and "tasks". Each lesson belongsTo a course, and each task BelongsTo a lesson. I want to output a task, sho...
(3) odpowiedzi
2017-02-09 14:02 I am passing variable $input from controller to view in laravel and it shows an error undefined variable $input in View »
I am passing variable $input from controller to view in laravel 5.0 and it shows an error undefined variable $input in View. Can anyone suggest someth...
(3) odpowiedzi
2017-02-08 14:02 How to update the form dependencies for laravel 5.3 or 5.4 project which is already installed »
I have followed these steps, First, added your new provider to the providers array of config/app.php: 'providers' => [ // ... La...
(0) odpowiedzi
2017-02-08 10:02 Laravel Gate : Authorization doesn't work »
I am trying to make laravel basic authorization. I'm using gate for laravel authorization. Table structure User Table, Permission Table, Role, role...
(1) odpowiedzi
2017-02-08 09:02 laravel, how can I ignore a special route? »
how can I ignore special routes with nginx server. for example I have a.com address and I want Ignore a.com/abc ...
(1) odpowiedzi
2017-02-07 15:02 laravel events, are they executing synchronously? »
basically what I want to do is use a special token auto login but: only for a subset of pages. Say, commenting is ok with the token login. Changing ...
(2) odpowiedzi
2017-02-07 14:02 Laravel 5.3 store and read file directories »
Currently trying to play about with files but struggling to figure out where to put them and how to read them back in a list. Ive tried putting few t...
(1) odpowiedzi