Data dodania Pytanie
2018-01-24 09:01 How to just update a table and add new line with Laravel? »
in the database table as below; public function up() { Schema::create('current_adresses', function (Blueprint $table) { $tab...
(1) odpowiedzi
2018-01-24 08:01 laravel 5.5 resource restful API »
I am trying to create an API for my app so that I can share the endpoint and have one app as the core application with business logic and the other ca...
(4) odpowiedzi
2018-01-23 19:01 using insert() and doing a bulk insert doesnt seem to trigger a insert with scout into Algolia »
I am doing a bulk insert in Laravel like \App\Example::insert([ [ 'name' => 'abc', 'value' => '123', ], [ ...
(2) odpowiedzi
2018-01-23 14:01 How to avoid race conditions with PHP Unit testing »
Let's start from the proof that it's a race condition I'm facing here: Failed Test Case ❌ phpunit --filter testMethod testlass path/to/testFile.ph...
(1) odpowiedzi
2018-01-23 10:01 undefined method std class error in laravel »
This code related to our group project.when i use below code it is give Call to undefined method stdClass::subjects(). I tried many ways bu...
(1) odpowiedzi
2018-01-22 21:01 Laravel App on AWS. 503 Error »
I recently deployed a Laravel App to an Elastic Beanstalk php 7.1 environment. When I did the deploy everything seems to have gone well (there were no...
(0) odpowiedzi
2018-01-22 16:01 Laravel Saving file posts it as a bin file »
Am trying to save a file in laravel but it endsup being saved as a bin file $file = $request->file('file'); $name = Carbon::now()->format('Y-...
(1) odpowiedzi
2018-01-22 12:01 Select model where related models match criteria »
I have a class Student and class Exam. One student can have many exams and one exam can belong to one student. I need to select all students that have...
(3) odpowiedzi
2018-01-21 10:01 How to get user's name from user_id in laravel? »
I have 2 table 1st fund 2nd users I have registered member name in users table while in fund table user_id of registered member. I want to show users...
(2) odpowiedzi
2018-01-21 08:01 How to execute multiple artisan commands without waiting for one to end execution? »
I have a huge amount of data that I want to process in fast and get most out of my server. So, I have created one parent artisan command and one child...
(1) odpowiedzi
2018-01-21 02:01 Lavarel 5 adding conditional clauses query SOLVED »
I'm new to Laravel. I just want to assing the query to a variable and then append constraints as needed. Here's the controller: public function inde...
(2) odpowiedzi
2018-01-21 01:01 Name or service not known [tcp://redis:6379] »
i am having a problem setting up redis cache with laravel. i have a redis server runnig on my local machine: my .env: i have the localhost on po...
(1) odpowiedzi
2018-01-20 13:01 Laravel: same table relationship error »
I am developing a directory hierarchy with JSTree. I am setting up database columns and relatioships with the Schema builder. here's what I have. S...
(1) odpowiedzi
2018-01-20 12:01 Laravel 5.4 updateOrCreate doesnt work »
What i have: Invoice and Invoiceitems models with hasMany and belongsTo Relationship with eachother. Invoice can have many invoice items and one invo...
(1) odpowiedzi
2018-01-20 08:01 Laravel queues - freeing up memory »
Laravel 5.5 docs mention that: Daemon queue workers do not "reboot" the framework before processing each job. Therefore, you should free any heavy...
(1) odpowiedzi
2018-01-19 15:01 count(): Parameter must be an array or an object that implements Countable »
I'm facing strange case. I face an error in production env not while in dev it's working fine. Development: Laravel 5.4.28 PHP 7.0.13 MYSQL 5.7.17 ...
(0) odpowiedzi
2018-01-19 13:01 Derived property does not get initialized from parent constructor »
In my general controller GeneralController: use App\Http\Controllers\Controller; class GeneralController extends Controller { protected $onLine =...
(3) odpowiedzi
2018-01-19 12:01 Remove csrf token only for single method - Laravel »
I am using paytabs payment gateway api. In that api, a redirect url have to given, so that once the transaction is completed, the page will redirect a...
(2) odpowiedzi
2018-01-18 14:01 Laravel: How to update pivot tables withou using first »
Im new in Laravel. I want to update my leaves pivot table. I am trying with below code but it only updates the single row i have multiple rows in db w...
(3) odpowiedzi
2018-01-18 07:01 notification on new user registration »
I used two tutorials to create code which notifies me on a new user registration. mail-notifications and redirect-login-register-add-method/ This wor...
(1) odpowiedzi
2018-01-18 03:01 Why are some of the attributes not saving on my database? »
I'm new in Laravel and MySql and really can't see where my error is. When I try to create another user, and then I check my database only some of the...
(1) odpowiedzi
2018-01-17 13:01 Laravel 5 How to make files as downloadable in asset folder »
I am following this tutorial to upload files Uploading is fine, but I want to create a link to download files. I am doing $contents = Storage::get(...
(4) odpowiedzi
2018-01-17 10:01 Is there a way to ignore the subdomain value in subdomain routing »
According to Lavarel documentation, if I use subdomain routing for multiple subdomains, I have to pass the subdomain as the first argument of callback...
(1) odpowiedzi
2018-01-17 09:01 SMTP protocol mail is not working using mail trap »
I am using smtp protocol to send mails using mailtrap. It is working perfectly in localhost but it is giving error. Connection could not be establishe...
(2) odpowiedzi
2018-01-16 14:01 Mail php function getting error in laravel »
I'm using mail function to override reset password auth. public function resetPassword(Request $request){ $new_password = rand(120400, 940490); ...
(1) odpowiedzi
2018-01-16 13:01 Bind Service Depending on Auth Laravel 5.5 »
I want to bind service to Laravel service container depending on Auth results. The problem is a want to provide cookie cart to guests and db cart to ...
(1) odpowiedzi
2018-01-16 10:01 Not getting custom error message »
I am using following code in Laravel for custom error message. But some how i am not getting custom error message. $rules = [ '12' => 'email',...
(0) odpowiedzi
2018-01-15 17:01 Multiple Auth in Laravel 5.5 »
I want to integrate multiple table in authentication, i've gone through these steps: First I. created a migration: php artisan make:migration create...
(1) odpowiedzi
2018-01-15 13:01 Return array to view in laravel »
I have the following controller, passing this array of information to my view public function index () {      public function index ()      {...
(1) odpowiedzi
2018-01-15 10:01 Why is Storage returning a local URL, despite it being uploaded to a public S3 bucket? »
I am using Laravel to upload files to an S3 bucket that were uploaded via a standard HTML form. The files are being uploaded successfully, however I ...
(1) odpowiedzi
2018-01-14 20:01 How to get a value from multi dimension json array in laravel »
I'm developing a RESTfull API's that gets it's data from firebase database i successfully retrieved the data exactly like this { "Admin": { "-L-c...
(3) odpowiedzi
2018-01-14 14:01 Ajax post request from google chrome extension to Laravel 5.5 app »
I'm new to web dev. I'm developing a laravel app with a google chrome extension to send a post request to laravel app using jquery ajax. When I comm...
(2) odpowiedzi
2018-01-14 10:01 Returning two models from function »
I am using Laravel 5.5 and I have a function and would like to return two models like the following: public function getDetails($id) { $instrume...
(1) odpowiedzi
2018-01-13 15:01 How to add third parameter in Laravel where clause array »
I am dynamically adding conditional where statements in Laravel Query Builder. $whereClause = array( $field_name1 => $field...
(1) odpowiedzi
2018-01-13 14:01 Laravel resource controller DELETE throws 405 with Axios »
I was working on a simple crud app using react + laravel. I am using Axios to make a request to the server. GET, POST is working fine. I am able to cr...
(1) odpowiedzi