Laravel-5.8 Questions
Ad
i have this error when i want tu use model binding in laravel 5.8
Routeserviceprovider public function boot(router $router) { parent::boot($router);
How to hide website information on Wappalyzer
I have a website written in laravel 5.8 and when i search my website info on wappalyzer.com website, i can see all the entire
Why is my show function not working in Laravel 5.8
Below is the code in my route route::get('patients/{$patient}/','[email protected]'); the above will not
how to create search in laravel 5.8
I want to create search by title of the posts "slug" , and when it searched for posts i want to show me the results in a list. i have already
Laravel Pagination Links not showing?
I used correct code but i don't know why links are not showing on view. i tried many solutions also but didn't work any.can anyone help me to get
How do i count a specific column on the dashboard in Laravel?
Below is how i view count of on my dashboard for all devices i store, where 'devices' are all devices am storing in my database. l want to view a
Laravel 5.8 Too few arguments error for jobs
I'm getting error below in the failed jobs table. too few arguments to function app\jobs\updateteamtodoprogress::handle(), 0 passed
Password confirmation doesnot match?
I am trying to using confirm password validation. i applied correct rules. but when it validates then it give me validation error like below: the
Laravel BelongsTo returning empty object
I have a table called messages and users. the users is the default users table generated by laravel auth. for some reason in my postmessage
ErrorException Undefined variable: posts
I want to get some field data in database in several different tables and i have made relationship between tables in post model , and in
Ad
PHP / PHP Unit / Artisan / Laravel restart app on next available port
I have an integration test suit built using php unit running against a laravel app. when the tests failed the app doesn't shutdown. when i run the
Laravel Showing all users and check if belong to Bans table
Hi im working on admin dashboard and i want to show all users and check if the user blocked get information about the ban from bans table im
How to set language when generating pdf in Laravel
Is there a way to force the language when generating a pdf in laravel? i'm using the package barryvdh/laravel-dompdf and
Validate .tar file upload in Laravel 5.8
I have this code $inputs = input::all(); $file = input::file('file'); $validator = validator::make($request->all(), [
How to reduce load time Retrieving large database table with 12,000+ rows in laravel
Hi there, i have a 'subscribers' table in my db, having more than 12,000 rows and the number is increasing
How to set validation as optional in Laravel
I want to make roles to be available only for admin can select roles for users and while user wants to edit the profile information can only see
How can i fix logical error that is session is not working?
I want that my application will go to admin_panel.blade.php only if the user login. i don't want to go there directly. so i implemented middleware
File uploader gives null when i want to sent it to my database
I was trying to make a file uploader in laravel. but when i want to send it to database it have a null value when i send it to the controller. i
How to search a pivot table for rows that are owned by two users
Sorry if this is a stupid question, but i'm new to laravel. i have two models and a pivot table: user id | name |
Request failed when using Axios in ReactJs and Laravel
I using reactjs as my front-end engine and i handle a request using axios to get data from my post table by laravel i set route in
Laravel create model outside app namespace
I want to use the command php artisan make:model user for creating an user inside the domain folder. nevertheless it will end up in
Ad
how to access validation error property name in Laravel?
I have from in laravel and i try to get validate it and see errors for each input, i already loop through $error->all() but i need
Custom Rule class in Laravel - how to get message working?
Working on an existing project, so keeping the code structure the same as other developers is critical. i've created a new
Quasar q-uploader with Laravel not recognizing the file while q-file works
I was able to get q-file to upload a single image and my laravel api is handling it perfectly. of course i need multiple files uploaded at once so
Defining and initialize a class property in PHP Laravel controller
I try defined property for some controller and i get error : symfony \ component \ debug \ exception \ fatalerrorexception
directory for public and private file in laravel
I want to create a website for selling quality photos using laravel framework. i want to show everyone the photo mockup on the home screen. but
Laravel 5.8 Eloquent Create() return wrong Id
Public function up() { schema::create( 'active_stocks', function ( blueprint $table ) { $table->bigincrements( 'id'
Best Practice for Laravel Validation
I create new form request and use this for all crud operations and use $this->getmethod(); to check the different between
Update Error - Trying to get property 'id' of non-object in Laravel 5.8
I am using laravel-5.8 for a web application. i am trying to apply rules and requests in laravel validation. i have these codes: rules
LARAVEL 5.8 - Multiple conditions for WHERE LIKE clause using array in foreach not giving complete results
I have a column in my db table which has multiple comma separated values and i have a comma separated array below:
Laravel 5.8: beberlei/assert/lib/Assert/functions.php return type produces error
I installed laravel 5.8 on local server it works fine, but on remote server it reports the error parse error: syntax error,
Laravel - How to display foreign key value as the title of a view blade
I am using laravel-5.8 for a web portal. i have these model classes: class appraisalidentity extends model { protected $table =
Ad
How to get following users posts in Laravel 5.8
I have two models in my laravel 5.8 project, relationships is shown below in both model classes. how can i get every single post
how to create to type of user for cms and regular profile for my shopping project in laravel
I'm new in laravel and i use 5.8 version i trying to create a shopping website with 2 types of auth one for cms and one for user. user can buy
Hash password in a Laravel app and check in another one
I have a system where several laravel apps upload information to individuals databases, the information of these databases could be accessed with
Laravel check validation parameter only if not registered user
I have a form, which displays a google recaptcha if no user logged in. if there's a user logged in, no recaptcha is shown. ok. but
Executing config:cache command during deployment
I have a secret test key for a payment gateway in the .env file. app_timezone = 'africa/lagos' app_paystack_key =
How to validate time "10:30 AM" in laravel validator
I am using a laravel validator and want to make the time required. i googled and didn't find any solution regarding my time format 10:30
How can I show Id details which i stored in a array?
I save some id in a array using php implode method. i showed that array value using explode method. but i want to show that id
How to use foreach in 'if' condition, Laravel 5.8
I am using laravel 5.8 i want to create an invoice of the customer on login, the scenario is that i want to check on login that if the due date
How to select a row in laravel using title not the Id line ::find(); method
I trying to find a row using the title, i need just one record i need a query like $art = artists::find($id); but i don't want to use
How to share the authenticated user across all laravel views
I have a very weird problem in laravel 5.8. i wanna share the user variable with all views. i added this to my
laravel-5.8 validation required field if a certain radio button is checked
I have this tow radio buttons and they are required <div class="form-group"> {!!
Ad
How can I get the user name who posted the post (laravel 5.8)
I'm try to get the user name who create the post witch is (problem model), i do not know what is wrong i have try
Too few arguments to function App\Http\Controllers\EventController::edit(), 0 passed and exactly 1 expected
Hi guys please help me im new to the laravel i don't know why i have this error
Cookie XSRF-TOKEN created without the httponly flag - Laravel 5.8
I am using laravel 5.8 . i use nikto to scan my site, i saw these issues. cookie xsrf-token
Cookie XSRF-TOKEN created without the secure flag - Laravel 5.8
I am using laravel 5.8 . i use nikto to scan my site, i saw these issues. cookie xsrf-token
Laravel 5.8 send parameters to authorize method FormRequest Class
I have update and store method like this public function update(contactrequest $request) { if
csrf token automatically regenerate on each request in laravel which cause csrf token mismatch on production server
Csrf token automatically regenerate on each request in laravel which cause csrf token mismatch on production server. on local server it is
Isset check on Array - Blade Laravel 5.8
If i do {{ dd($alert) }} i got array:7 [▼ "created_at" => "2019-12-30 17:31:55.728307+00:00"
redirect is not working for custom middleware
I am using laravel project version 5.8. i have used two middleware admin and author. i have created
Trusting users with route parameter and hidden input values
I'm creating a school management system software with laravel, this project happens to be my first big project, to be used commercially. and no
Why does Laravel 5.8 migration not work without changing the table name?
I have the following table schema; schema::create('users', function (blueprint $table) {
Jquery data.success is not working with laravel 5.8
I am sending data through ajax to controller and return a json response, but when i am trying to perform action using response it's not
Ad
laravel eloquent 'has' method behaves in an unexpected way
I want to get the collection of a section model if it has at least one user. from the docs the has() method does this,
Laravel Problem last login, Time is stamped in every row
I'am use laravel authentication event for last login ,but there was a problem when the time stamped to every row my code in column 'last_login' i
Running Laravel job chain synchronously
I have a laravel job chain like this job1::withchain([ new job2(), new job3(), new job4() ])->dispatch();
How to retrieve all sessions "except" specified field in Laravel
I'm having a hard time searching on how to retrieve all sessions except specified field(s). i tried to search
Laravel: Retrieving Data in Loop in a One to Many Relationship
I'm using laravel 5.8. here's my code... createschoolstable migration public function up() { schema::create('schools',
Base table or view already exists on database migration in laravel 5.8
When i migrate i get this error: queryexception: base table or view already exists: 1050 table 'users'....
SQLSTATE[HY000] When trying to select and pass a value from a dropdown
I am trying to add a select box in my application in order for a user to choose a category to assign to his post. the categories and post
Multiple approval process in Laravel
I have a form which is submitted by a student and needs approval by different people based on the type of form. how can i achieve this in laravel?
How to Cancel the Braintree Subscription by Braintree_id or subscription_id using Laravel Cashier
We are using laravel cashier (braintree) with laravel version 5.8. we have a case where a user is subscribed to same plan with same name multiple
Laravel: How to get SUM of a relation column using Eloquent
How to get sum on related model using eager loading, without loading whole relation data? in my project there are two
Laravel Api does not send required error json message from Request class
Request class class loginrequest extends formrequest { public function wantsjson() { return true;
Ad
How to search a string in database tables and retrieve matched columns name in laravel
I have a table having below column. title, subtitle, series, blurs, keyword_one, keyword_two, keyword_three, keyword_four, keyword_five,
Laravel 5.8 custom command not found
I have created a custom command using artisan: php artisan make:command resetnegotiations than
Pass Parameter to Relationship Function or alternative solution
I know this question has already been asked but the answers dont work for me i have a table called channel_posts with this
Laravel select() returns empty value with Polymorphic relation and Cross Join
I have 4 tables: tv_shows, tv_show_episodes, languages, and languageables every tv
laravel: form action isn't working in laravel-5.8
When i click on submit button to submit data then it says: 404|not found route
How can I save images with laravel and access them from another laravel project
I have two laravel 5.8 projects. in one project i'm saving files, (such as images and pdf), in the public/uploads/files
POST method is not supported for this route. Supported methods: GET, HEAD
I want to make my patient book for an appointment. i am using 2 controllers: patientcontroller and
Remove ip from json response in Laravel
I have rest api in laravel like below: { "id": 17, "title": "devnet", "slug": "devnet", "content": "sfdf",
SQLSTATE[HY000] [1049] Unknown database 'laravel'
I am getting this error while trying to save an object into db. sqlstate[hy000] [1049] unknown database 'laravel' (sql:
Laravel - 500 (Internal Server Error) on Ajax Call
I've been trying on this tutorial
"Migrate reset" not working when there is an error in code
In basic laravel application, in user class i added: use softdeletes; application is no longer working
Ad
Laravel API stopped responding. How to return to service?
Some context: i had a hd failure and had to remove my secondary drive and install it on a new system to get access to my project
Why can't laravel 5.8 login with database session driver on a private network?
Setup: multiple laravel replicas behind a load balancer in a private network replicas contact a single master that has the
How to send email to multiple user email in PHP by set date and hour automatically
I want to send email to multiple user email in php automatically by setting a date by the user i mean the user choose a date and hour from input
How to fetch data one line per each 15 minutes from the last 24 hour in Laravel 5.8?
I'm trying to get logs from the last 24 hours for a chart i'm building. i'm using laravel 5.8. i need 1 line per
Pass dynamic value to Laravel max validation rule
I am working on a sales laravelcollective form whereby the sale_quantity entered should not be more than the
data isn't saving into db using eloquent relation
Hi m trying to save data into db using eloquent orm one-to-one but it is not saving and not showing any error to fix it (m unable to find any
How can I customize validation error messages when using automatic redirects?
Using laravel 5.8 and generated field names, i would like to know if it is possible to change the validation messages used
Property [vegan] does not exist on this collection instance. Laravel
I'm trying to show a title based on whether a specific column in my table is 1 or 0. in my controller i have (edited out some irrelevant
Laravel - migration, table structure modification - correct way
My present table is schema::create('students', function (blueprint $table) { $table->bigincrements('id');
Through Ajax price data comes to form input text, but not the selected product's price, instead only the first price is always brought
I have prepared a sales recording form whereby you first select the product/stock_name. once this selection is made it should populate a field
adding line break in string data coming from database in laravel
@forelse($orders as $order) <tr class="dropdown sliderow" data-toggle="collapse" data-target="#{{$order->id}}"
Ad
Call to undefined relationship [role] on model [App\Employee]
Hi m trying to show roles assigined to employees using eloquent many-to-many relations but it says: call to undefined relationship [role] on model
Fire off event after job-chain has "finished"
I have below listener called processdocumentfields. my listener class implements the shouldqueue. in this, i
Selected product name to auto populate price from DB
I have tried the solution given at
Upgrading from Laravel 5.7 to 5.8 returns error: Class blade.compiler does not exist.... post-autoload-dump event returned with error code 1
I am trying to upgrade from laravel 5.7 to 5.8 but
What should i do to get all the users with exactly two roles? as user 1 has 2 roles in database
User.php public function roles(){ return $this->belongstomany(role::class); } role.php public
Adding a filter helper method to Laravel model
I'd like to add a method to my laravel product model which filters by name attr and returns a collection of all matching
Can't set session manually
I'm new in laravel 5.8 and i need to set a session manually i use this code session::set('subset', 'yes'); but i get error how to set
Class 'app\login' not found in laravel 5.8
I am using laravel 5.8 and have an issue with model class. since model is placed directly in app folder. namespace app; use
Upload Multiple File In Different Attribute
How to upload multiple selected files in different attribute such as pic_1,pic_2,pic_3 in mysql views
How to render the blade templates of Lavacharts?
I am new to this package:
Call to a member function setCookie() on null - Laravel 5.8
I have no idea why i keep getting this lately by just simply navigate between pages. call to a member function
Ad
Laravel auth: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: NO)
I was trying to implement basic user registration & login using 'auth'. i am able to create the migrations and the tables are already created
Laravel Time Range
I am using laravel 5.8 and i have two columns with data type timestamp, start_time and end_time. before saving a new record i want to check if it
Ad
Blog Categories
Ad