Mrasta - Your Solution, Moment Away

How to remove public from Laravel url version 5 and above

How to remove public from Laravel url version 5 and above

All beginners have misunderstood the Laravel routing and MVC structure and want to remove public from laravel url. The public clause is there for security purposes. Whenever you try to run your application using your local server including Xampp or Wamp, you always...

read more
1071 Specified key was too long Laravel Migration Error

1071 Specified key was too long Laravel Migration Error

PDOException::("SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes") While migration sometimes you face SQLSTATE[42000] error which says the specified key was too long. You may face this error because you...

read more
Specific Table Migration in Laravel

Specific Table Migration in Laravel

You need to specific table migration in Laravel because you don't want to drop or trunk the existing data within the tables or for some other reasons you just don't want to play with the database. Create a migration first Open your terminal and run this command....

read more
Jquery Trigger Change Event | Jquery Onload Function

Jquery Trigger Change Event | Jquery Onload Function

Jquery trigger change event can be called with a few simple line of code. Let's take an example, jquery on page load or jquery after page load, you just want to call an function which is onchange function of jquery. Solution 1: With Jquery Onload Function...

read more
Jquery Screen Width and Jquery on Window Resize

Jquery Screen Width and Jquery on Window Resize

Jquery screen width condition will be executed while loading the document. Jquery on window resize play a nice role for developers to help with jquery media queries. Solution to Jquery Screen Width [crayon-6732f96b5692b345662766/] The above code will help you to...

read more
Change Image Source using JQuery

Change Image Source using JQuery

Landing here means that you probably want to change image source using jquery. Tell me more about your problem, you want a user to click on a button and the image should get change upon the event happening or you want an image to get change on...

read more
Jquery If Windows Scroll to Amount of Pixels

Jquery If Windows Scroll to Amount of Pixels

Jquery if windows scroll. So, you are dealing with a webpage which needs on-scroll function, when a user scrolls the page to some extent, so the content, color or something else should change on the page. Here is a simple possible solution...

read more