Data dodania Pytanie
2017-03-23 17:03 Force Laravel to log in a user using legacy authentication »
I am trying to slowly integrate Laravel into a legacy PHP application. One of the tasks is to automatically register a Laravel user session when a use...
(5) odpowiedzi
2017-03-23 17:03 Upload muliple files via AngularJS to Laravel Controller »
I have Browse files button <input type="file" upload-files multiple /> Create Button <button class="btn btn-link" ng-click="store()"...
(2) odpowiedzi
2017-03-23 15:03 When a Row is deleted how Can I delete all associated rows in other tables? LARAVEL 5.4 »
I wrote this function but wondering if there's a "laravel" way to do the same functionality? I want to delete all the rows in my other tables that ar...
(2) odpowiedzi
2017-03-23 04:03 Default values for Laravel 5.4+ blades new components? »
Laravel 5.4+ allows for components of the following structure: <div class="alert alert-{{ $type }}"> <div class="alert-title">{{ $tit...
(1) odpowiedzi
2017-03-22 22:03 Is there a way for Eloquent whereHas to only get() the matching results? »
I have the following function public function index(Request $request) { $results = Service::whereHas('conditions', function ($query) use ($requ...
(2) odpowiedzi
2017-03-22 15:03 Laravel vagrant up not working - Errno::EADDRNOTAVAIL »
I have recently had some errors while a part of the Laravel environment or Windows 10 updated, so after a lot of trials and errors I've decided to del...
(1) odpowiedzi
2017-03-22 15:03 vagrant up - Errno::EADDRNOTAVAIL »
I have been trying to install Laravel Homestead and I have been following different tutorials but always when I reach the point where I have to execut...
(3) odpowiedzi
2017-03-22 12:03 custom validation about unique of more than one field in laravel »
I have a table tanks +----+----------+-------+-------+ | id | capacity | model | width | +----+----------+-------+-------+ | 1 | 1000 | 15 |...
(3) odpowiedzi
2017-03-22 11:03 Task Scheduling Logs with OctoberCMS »
I'm using OctoberCMS based on Laravel. I have records in a database table vendor_log_. Each day I need Laravel to save a list of the newly created r...
(1) odpowiedzi
2017-03-22 00:03 - configuration.output.path: The provided value "public" is not an absolute path! with Webpack »
I'm using Laravel Mix, that is based on WebPack. I had it working, and now, it fails with: Invalid configuration object. Webpack has been initialise...
(3) odpowiedzi
2017-03-21 22:03 MethodNotAllowedHttpException »
I'm trying to update the fields in the database, but I couldn't here is my routes : Route::get('orders', [ 'uses' => 'OrderController@postOrd...
(3) odpowiedzi
2017-03-21 16:03 Larave 5.4 required if validation issue »
I have 2 fields, accepts_usd and price_usd. For price usd i have a validation rule: 'price_usd'=>'integer|required_if:accepts_usd,1', And for a...
(3) odpowiedzi
2017-03-21 12:03 "PDO exception: php_network_getaddresses: getaddrinfo failed" after changing DNS resolvers, with DB running on AWS »
In our Laravel 5.2 app, we have a DB setup running on AWS, using multiple read servers (and multiple DB connections). At night, we changed the DNS re...
(2) odpowiedzi
2017-03-21 10:03 Calling a view through id in laravel »
I have different files in views folder in navbar folder I have navbar-1 navbar-2 Now I am calling it dynamically by giving it an id like @include...
(2) odpowiedzi
2017-03-21 04:03 Conditional redirect in laravel after login »
How to redirect after login with condition in laravel 5.4, As Like: if(Auth::user()->id==1) {return redirect('admin');} else ret...
(5) odpowiedzi
2017-03-20 17:03 Laravel dependency injection not working »
I'm using resource controllers in my laravel app and I'm trying to use dependancy injection but it's not working on a particular model and controller....
(2) odpowiedzi
2017-03-20 17:03 Laravel 5.4 on PHP 7.0: PDO Exception - Could not find driver (MySQL)c »
I have a Laravel 5.4 project on my Ubuntu 14.04 (VPS with Plesk 12.5.30). After creating the database and setted up the .env file with required inform...
(3) odpowiedzi
2017-03-20 14:03 Default foreign key in laravel for relationship pointing wrongly »
Laravel asks for users_id instead of user_id I have two table Users (id, name, email..) and Country (id, user_id, country..). User model public func...
(2) odpowiedzi
2017-03-20 13:03 getting 404 not found when submitting form using ajax in laravel »
I am new with laravel, I am having an issue when posting my data to controller in laravel while using ajax. My view contains a select box which is pop...
(3) odpowiedzi
2017-03-19 12:03 How to ignore validation of some fields with condition in laravel »
I have an OrderRequest with these rules: public function rules() { return [ // 'surname' => 'required|max:255'...
(2) odpowiedzi
2017-03-19 11:03 Class 'App\Http\Controllers\Session' not found »
I'm new in laravel. Having problem to show session temporary flash message. Can not rescue from this error Class 'App\Http\Controllers\Session' no...
(3) odpowiedzi
2017-03-19 10:03 Laravel Delete Method: MethodNotAllowedHttpException in RouteCollection.php line 233: »
I tried to delete cart from a list..when i tried to delete it, it shows the Above Error. Here is my controller, view part and method Route::post('ca...
(3) odpowiedzi
2017-03-19 07:03 How to call Controller Method in a Controller in a different namespace in laravel »
I want to call a function of CommonController in PostsController. PostsController is in Posting namespace PostController: App\Http\Controllers\Posti...
(1) odpowiedzi
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 15:03 How to limit a text by characters »
I have a PHP project ( Using laravel ) and I need to show just part of an article in the view . For example this is the full content of article : ...
(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 21:03 Laravel where like not working properly »
I would like to use the query builder with the LIKE operator but it's not working properly. Here is my code in my controller : public function list...
(3) 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-17 11:03 Laravel: orderBy a column with collections »
I need to OrderBy a column with collection. I need to orderBy(updated_at, 'desc') all posts which owned by current logged user. Here is my code : ...
(3) 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 18:03 Laravel where clause, and with a list of or's »
I want to create a where clause that is an and, with a list of or's. Here's my code: $searchLoop = array( 'u.Name', 'u.Email'...
(3) 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