WEBTRICKSHOME FORUM

JR Prajapati

09 Apr, 2019

How to add custom authentication middleware in laravel?

Most of the web applications have more than one user where different roles and permissions are defined to each set of such users. To verify the users authentication level and control access to the pages, these applications need to have different authentication modules. Using Middleware, you can easily implement such authentication filters in Laravel. Lets have a look on how to add custom authentication middleware in Laravel. Add a custom field in the U... Read more »

1 Answer       57066 Views

Anonymous

09 Apr, 2019

How to disable auto login after registration of a new user in laravel?

Disabling auto login after registration of a new user is very important in Laravel if you are securing the auth routes using middleware which means you can't register a user without logging in. If you don't disable auto login function, you are going to get logged in as a new user every time you register a new user which is annoying. So, have a look on how to disable auto login after registration of a new user in Laravel. Your RegisterController method uses Re... Read more »

1 Answer       11323 Views

Anonymous

14 Feb, 2019

How to load posts from a specific wordpress category in a separate template?

Wordpress follows it's own templates heirarchy while loading templates for a spicific content like home page, single page, category, tags, taxonomies, custom post types, author display, search results, or any other content. Category post also follows the same rule. Learn more about wordpress template heirarchy from here. Wordpress Template Heirarchy ... Read more »

1 Answer       2608 Views

JR Prajapati

08 Jan, 2019

How to fix contact form 7 not sending email in wordpress?

Over 5 million + websites built on wordpress have installed Contact Form 7 for messaging purpose because of its reliability and convenience to use. But lately, a huge number of people appear to complain about it not functioning well. In some cases, people say that the form appears to work properly on front end and displays the success message too while the message never reaches the destination mailbox, while in other cases, the error message appears though everything seems to... Read more »

1 Answer       2715 Views

Anonymous

22 Sep, 2018

How to get date only in desired format from created_at timestamp data in laravel?

There are a couple of ways to get date only in desired format from created_at field in laravel which are stated below. Replace datatype from timestamp to string in database Convert timestamp string data into array and display the first index only Convert timestamp string to Unix time and get date in desired format from there. The best option is listed first below followed by others. Converting timestamp string to Unix f... Read more »

1 Answer       29779 Views

JR Prajapati

19 Aug, 2018

How to crop image and upload it using jquery and php?

There are a lot of jquery plugins available for free that allow you to crop image. Let's see how we can do it using one of them namely croppie. Integrate Jquery Plugin and Prepare HTML file to Add Image Add the following links to your webpage, you can either download them and use locally or use the CDN directly. https://cdnjs.cloudflare.com/ajax/libs/croppie/2.6.2/croppie.css https://cdnjs.cloudflare.com/ajax/libs/croppie/2.6.2/croppie.js ... Read more »

1 Answer       15640 Views

Anonymous

10 Jul, 2018

How to fix phpmyadmin error, incorrect format parameter that appeared while importing a database?

phpMyAdmin Error - incorrect format parameter might appear due to multiple reasons such as: Execution of a script exceeding the defined maximum execution time. Parsing of requested input data exceeds the defined maximum input parsing time. Script needing operating memory higher than the one defined in memory limit. Size of post data higher than the defined maximum post data size. Size of the file being uploaded higher than the define... Read more »

1 Answer       124060 Views

Anonymous

18 Jun, 2017

Call To A Member Function GetClientOriginalName() On String - Laravel File Upload

First of all, you need to know that while uploading an image or a file, you are sending an array of data. If you treated it like other usual text input fields, only the file name which is actually a string will be sent via the form to the processing blocks of codes. In that case, the function GetClientOriginalName() can't be executed as the string won't have any additional information. So, make sure you have added the form attribute enctype="multipart/for... Read more »

1 Answer       28523 Views

Anonymous

22 Apr, 2018

Is There An Easy Way To Export Database Resultset To Excelsheet?

Download the js files listed below that has got all the necesarry blocks of codes you need to be able to export an HTML table to excelsheet and add links to those js files in your page. Create a button for download and give it an id button and give the id myTable to your table. You can replace those ids with the ones you prefer. Once you have done that, add this script in your view file and declare the class or id names you defined for the... Read more »

1 Answer       5602 Views

Jiwan Thapa

03 Apr, 2018

How Can I Login In Laravel Using The Username In Place Of Email Address?

Go to Vendor\laravel\framework\src\Illuminate\Foundation\Auth\AuthenticatesUsers.php Search for the method username and return name instead of email public function username() { return 'name'; } Change the login field in login page to allow username as input value. <div class="form-group{{ $errors->has('name') ? ' has-error' : '' }}"> <label for="name" class="col-md-4 control-label">Use... Read more »

1 Answer       2917 Views

Showing 11 to 20 of 33 results