Data dodania Pytanie
2017-03-18 21:03 How to insert id to database from text input »
Hi I've been searching how to do this for over 2 hours so I'll ask here. I have an eventlineitems table with product_id. On the create form I want to...
(1) odpowiedzi
2017-03-18 12:03 How to work with Views without using PHP's "compact" function in LARAVEL »
I'm working on laravel to fetch data from database and store that data or array of data into the variable like $tasks store data of tasks table from d...
(3) odpowiedzi
2017-03-18 10:03 how to remove question mark form url in laravel »
how to remove question mark form url in laravel i use laravel 5.4 and i get this trey to use query in the link but it don't work http://localhost/shoo...
(2) odpowiedzi
2017-03-17 18:03 Connect to staging database from a local environment - Laravel 5 »
Goal Locally on my Mac OS, I'm trying to connect to my staging database that are running and hosted on my Ubuntu VM. Steps In my config/database...
(1) odpowiedzi
2017-03-17 15:03 Multiple array validation in laravel »
I have 3 type of data to validate data in group single data single and data in group combined This validation works for single data $validator = ...
(2) odpowiedzi
2017-03-17 15:03 Laravel: Find all posts made by a user using name field »
I want to fetch all posts made by a user by matching the name of the user from the route url using Eloquent My User.php has relationship as follows ...
(1) odpowiedzi
2017-03-16 23:03 How to delete categories of user? »
I try to delete categories of user like as: Category::with('user', Auth::user()->id)->where("user_id", $id)->delete(); Category model has ...
(2) odpowiedzi
2017-03-16 17:03 Using phpcrawl with Laravel 5.4 »
I am trying to use cuab's PHPCrawl within Laravel 5.4 and have included it through composer using this package: https://packagist.org/packages/mmerian...
(1) odpowiedzi
2017-03-16 14:03 Custom Header not available in Laravel $request object »
I have a web application, where I am authenticating based on my custom token sent in headers as 'API_TOKEN'. I am not sure about what is happening, af...
(1) odpowiedzi
2017-03-15 19:03 Laravel Controller Dependency Injection »
I'm trying to do dependency injection in Laravel to keep my controllers and models as slim as possible. The goal is to have repositories to handle the...
(2) odpowiedzi
2017-03-15 16:03 How to find a specific file in a Laravel application? »
I have a PHP file located at holiday/app/Console/Commands/myCommand.php with: namespace Holiday\Console\Commands; $bob = file_get_contents('Storage...
(1) odpowiedzi
2017-03-15 09:03 Complex Laravel collection »
I'm having some issues with the Laravel Collection class. What I'm trying to do: I have a multisite solution in which a site has "facilitators". S...
(2) odpowiedzi
2017-03-14 16:03 Share a variable through out Laravel application »
I have a variable. $key_test = 123456789; I want to be able to access this 1 variable anywhere in my app even in config files, models, controllers, ...
(3) odpowiedzi
2017-03-14 12:03 How to display specific errors when loggin in in a Laravel 5.3 app with the Auth::attempt() »
My question is somewhat similar to this but I'm not getting any error when logging in. I'm using Auth::attempt() to log users in my app but it returns...
(1) odpowiedzi
2017-03-14 11:03 Laravel 5.4 Password Reset »
I have a Laravel 5.4 application and I have a view in my admin area that allows me to see all users. I want to create a function that allows me to cl...
(1) odpowiedzi
2017-03-13 17:03 How to display query without executing it with eloquent »
I want to display a query without executing it using Eloquent. I want to write something like: \DB::table('my_table')-> updateOrInsert(['a' => ...
(2) odpowiedzi
2017-03-13 10:03 Accessing model in middleware in laravel »
I am building a multi tenant app and I am distinguishing the tenant based on the subdomain. I have registered a global middleware on the laravel kerne...
(2) odpowiedzi
2017-03-13 02:03 How do I connect a "related products" table »
I have the following tables products table product_id name desc with a has many relation to suggested products table id product_id suggested_pr...
(1) odpowiedzi
2017-03-12 13:03 Laravel 5: unstable display errors »
I have a weird issue, Laravel 5 sometimes display <HTML> </ HTML> rather than display error msg, and next time when refresh display the er...
(1) odpowiedzi
2017-03-12 09:03 Pulling out distinct rows from relations of a relation in Laravel 5.4? »
I have this crucial situation where i want all dataset which belongs to the relation of current data. Enough confusion, lets take an example: I hav...
(0) odpowiedzi
2017-03-12 07:03 How to extend Laravel Storage facade? »
Without knowing how Laravel facades work, based on my PHP knowledge, I tried to extend Storage facade to add some new functionalities. I have this co...
(2) odpowiedzi
2017-03-11 13:03 CONCAT columns with Laravel 5 eloquent »
Consider me as laravel beginner The goal is: I have two colums, now I need the id to be prefixed with the component name of same row in the table. ...
(1) odpowiedzi
2017-03-11 08:03 How to get All data from a model except one? »
I want to retrieve all users data except one.for that i used the following query $users=User::whereNotIn('name',['admin'])->pluck('id','name'); ...
(2) odpowiedzi
2017-03-11 07:03 How to Calculate Previous Rows Balance in Laravel »
I have a Amount Transaction table which contains the following data's: First Thing I Display Balance Amount. Controller Code $invaccountstate...
(1) odpowiedzi
2017-03-10 18:03 Laravel 5.4 - How to customize notification email layout? »
I am trying to customize the HTML email layout that is used when sending notifications via email. I have published both the mail and notification vie...
(2) odpowiedzi
2017-03-10 15:03 OctoberCMS How to Override Users Plugin onRegister() Function? »
I'm using OctoberCMS based on Laravel. I'm trying to override the Users Plugin onRegister() function. A previous answer helped me extend the plugin....
(1) odpowiedzi
2017-03-10 08:03 Laravel binding replace question mark from variable »
I have area table like : ----------------------------- id | name | level ----------------------------- 1 | India | country 2 | Some?th...
(3) odpowiedzi
2017-03-09 16:03 Passing API data to view Laravel »
I can't figure out why my data is not being passed to View I get the message Undefined variable: project Can someone help identify where i am going ...
(2) odpowiedzi
2017-03-09 08:03 Modify OctoberCMS Laravel Plugin to Disable Form Username Change »
I'm using OctoberCMS based on Laravel with the official Users plugin. How can I modify this plugin to Disable or Deny Username Change? The form can ...
(1) odpowiedzi
2017-03-09 02:03 jQuery remote validation on create vs update »
I have a Laravel 5.4 backend with validation rules all set up and working fine. I also implemented the jQuery Validation plugin for client side valid...
(1) odpowiedzi
2017-03-08 18:03 Laravel Cashier Call to Undefined Method onGracePeriod() »
So I recently upgraded from Laravel 5.1 -> 5.4 and Cashier from 5.0 -> 7.0. In my blade I am using this check to see if a user is in their grace perio...
(1) odpowiedzi
2017-03-08 10:03 How to Validate and Sanitize Form Checkbox Array? »
I'm using OctoberCMS based on Laravel and Twig. I have a form with checkboxes queued[]. They are submitted and deleted with Laravel using a loop. It...
(1) odpowiedzi
2017-03-08 05:03 How to migration change columns type? »
I got an error, When I try to column type from string to text, With migration function of Laravel. File : {data_time}_change_db_structure.php public...
(2) odpowiedzi
2017-03-07 23:03 SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'property_id' cannot be null in Laravel 5.2 »
I am trying to solve this problem, where I try to edit multiple files with the update method in laravel 5.2. When I run my process and save it return...
(2) odpowiedzi
2017-03-07 21:03 How to get and order the most relevant entries from the database with multiple keywords Laravel 5 »
I am having trouble handling multiple keywords and querying the database based on relevance. I want to search each row and if there is more than 1 key...
(1) odpowiedzi