Data dodania Pytanie
2018-02-18 20:02 Can't require laravel/passport with composer »
When I do composer require laravel/passport, I get Using version ^5.0 for laravel/passport ./composer.json has been updated Loading composer re...
(1) odpowiedzi
2018-02-18 12:02 retrieve data from table1 but do comparision in table2 - Laravel eloquent »
I have a query like below: Relation1::with('relation2') ->select('relation_1_columns') ->where('relation_2_column', $relation2->id)...
(1) odpowiedzi
2018-02-18 12:02 Laravel - Get Route Parameter in a Model »
I'm using Laravel 5.5 I have a 'Post' Model. In that model I want to use a Route Parameter (say userId).. I have this id in Post Controller. public f...
(2) odpowiedzi
2018-02-17 15:02 Multiple level relationships data insert on Laravel5 »
I try my best to describe my question in English For example: 3 tables, artists, albums and songs, they all have foreign keys. artists hasMany al...
(1) odpowiedzi
2018-02-17 14:02 How to edit the auth in laravel? »
I want to create a registration form that includes username, Phone number and an address in the registration process. How do you edit the auth to add ...
(3) odpowiedzi
2018-02-17 11:02 Error on Geting image from storage path in laravel 5.4 »
I want to view image from storage path. My image is in storage/app/public folder. How can I view that. My code doesn't show image. Thanks in advance ...
(1) odpowiedzi
2018-02-16 20:02 Laravel change database connection »
How can a database connection be changed when user is admin role? Admin database contains information that must not be accessible to other user's and ...
(1) odpowiedzi
2018-02-16 19:02 Laravel 5.5 - where access relationship »
In Laravel 5.5 I am trying to get all members where member->user->membership->id is user->membership->id. For example: $members = Memb...
(1) odpowiedzi
2018-02-16 15:02 Laravel: customize page links in pagination »
I'm building an app with Laravel 5.5. and I need to customize the pagination. I have to apply css class on the page link elements. Where I find the te...
(3) odpowiedzi
2018-02-15 13:02 Revert Laravel app.name »
I wanted to change the app.name of my Laravel project, the new name had a space in it. Since the change of the name I get the PHP error: PHP Fatal...
(2) odpowiedzi
2018-02-15 13:02 How I can add more data to Laravel's auth()->user() object + it's relationships? »
My user model has foreign key reference called person_id that refers to a single person in my people table. When I die & dump the authenticated...
(2) odpowiedzi
2018-02-15 09:02 Forcing A Unique Rule To Ignore A Given ID »
In my controller i was trying to update my product, product name here is unique and here i wanted to update only price. so name will be as it but as i...
(3) odpowiedzi
2018-02-14 17:02 Laravel authentication and authorisation »
In my database, there is two table members and services. in that table, there are 5 column members Username, Rank, Name, Password, and more services u...
(1) odpowiedzi
2018-02-14 14:02 Error 500 when called index.php in laravel application (Windows environment) »
I am deploying a laravel application inside windows based docker container using IIS. When I run the application after running docker container the se...
(2) odpowiedzi
2018-02-14 10:02 How to use a dynamic variable in Laravel group routes? »
for example: Route::group(['prefix' => '{lang?}'], function () { //.. }); create a variable in middleware: public function handle($request, ...
(1) odpowiedzi
2018-02-13 12:02 OR WHERE IN in laravel Query Builder with sub query »
How can make query builder for following Query SELECT * FROM `rad_nas` WHERE nas_assigned = ".$id." OR nas_assigned IN (select franchise_id from ra...
(1) odpowiedzi
2018-02-13 12:02 L5.6 orderBy() in combination with paginate() returns the same row multiple times »
Controller: public function index($devicetype) { $devices = Device::where('device_type', $devicetype) ->orderBy('created_at', 'desc') ...
(1) odpowiedzi
2018-02-13 07:02 Post Method request not found »
I'm having a problem with my code now and it seems like that the route that I specify is not found whenever I try to access it. Route: Route::post(...
(3) odpowiedzi
2018-02-12 16:02 Laravel: How to specify the number of items in pagination via route variable »
I'm looking to change the number of items displayed via pagination, specified in the controller via the route below to set the amount of products to d...
(2) odpowiedzi
2018-02-12 12:02 Access collection instance as javascript variable? »
I was trying to send collection of following Query: $monthly_report_chart = DB::table("transactions") ->select(DB::raw("Date(updated_at) ...
(2) odpowiedzi
2018-02-12 07:02 How to expand a dot notation array into a full multi-dimensional array »
In my Laravel project, I have a dot notation array which I need to convert to a multi-dimensional array. The array is something like this: $dotNotat...
(1) odpowiedzi
2018-02-11 20:02 Laravel 5.5 eager loading throws error - Trying to get property of non-object »
I see a lot of people are having trouble with eager loading and Laravel, and I'm one of them too. I'm getting the error: Trying to get property of non...
(1) odpowiedzi
2018-02-11 18:02 laravel one to on hasOne relationship manual foreign key and local key detecting wrong column »
I have two tables In above table, I want to search countries.user_name (primary key) and want its isd code from isdcodes.code where isdcodes.co...
(1) odpowiedzi
2018-02-11 00:02 New Laravel project, /login is forbiden »
There are a couple of questions like this, but none of them worked for me. I have a new project in Laravel. I created new /register route, works perf...
(3) odpowiedzi
2018-02-10 17:02 Weird syntax error after creating a new project in laravel 5 »
I created a new project: laravel new myprojectname and I am getting a blank page. First, I thought is about the permission so I gave the 777 to the st...
(2) odpowiedzi
2018-02-10 15:02 Laravel Route Redirect with URL Parameter »
I am trying to generate a unique id and then redirect to a different route with id in the url parameter. But I am getting error as : "Route [sequence...
(2) odpowiedzi
2018-02-10 14:02 Laravel "The page has expired due to inactivity" - TokenMismatchException »
Laravel creates new session token but uses the old token when using csrf_token(). While validating it uses the newly created session_token() thus give...
(1) odpowiedzi
2018-02-10 14:02 Laravel: Forms on pages with url parameters »
I have a routes generated as below and want to put a form on the page: Route::get('suppliers/dashboards/{supplier}', ['uses'=>'SuppliersDashInvoic...
(1) odpowiedzi
2018-02-10 09:02 CSRF token not working in laravel »
I m working on laravel login and everything works fine in localhost but when i moved to live server its throwing page expired error even though i have...
(1) odpowiedzi
2018-02-09 18:02 Laravel identify collection instance key »
I've setup a one to many relationships and I would like to retrieve the many results and display those onto my blade template. I'm currently getting t...
(1) odpowiedzi
2018-02-09 17:02 Foreach inner When query Laravel »
Hi Guys this is my function, i am using laravel 5.3 public function search(Request $request){ $word = $request->search; $status = explode...
(2) odpowiedzi
2018-02-09 11:02 Laravel Carbon getting trailing data error »
Error when Using Laravel eloquent model, my database timestamp field has 2018-02-09 12:55:06.1234 while using Carbon on this I get trailing data error...
(1) odpowiedzi
2018-02-08 12:02 Laravel join with LIKE CONCAT »
Laravel 5.1.11 I have a simple search in my shop: public function search($request $request) { return Catalog::where('title', 'like', '%'.$re...
(2) odpowiedzi
2018-02-08 11:02 How to install laravel 5.6 in ubuntu 16.04? »
I upgraded PHP 7.0 to 7.1 with this command: 1. sudo add-apt-repository ppa:ondrej/php 2. sudo apt-get update 3. sudo apt-get install php7.1 and ra...
(1) odpowiedzi
2018-02-08 06:02 Laravel switch case Undefined variable »
This is my current view code. I don't know what's wrong with my code. <?php switch($_POST['selected']){ case 'option1': break; case 'option2': ...
(2) odpowiedzi