Skip to content

Instantly share code, notes, and snippets.

View rajucs's full-sized avatar
🎯
Focusing

Arman Hossain rajucs

🎯
Focusing
View GitHub Profile
add this line in your select option and place the variable as yours.
if($property_state == $state_id){ echo 'selected="selected"';}
Illuminate\Database\Eloquent\MassAssignmentException
Add [_token] to fillable property to allow mass assignment on [App\Model\Customer].
Solution:
you need to fill the model
From:
namespace App\Model;
Method-1:
$this->validate($request,[
'product_image' => 'mimes:jpeg,jpg,png,gif|required|max:10000'
]);
if($request->hasFile('product_image'))
{
$image_name = $request->file('product_image')->getClientOriginalName();
$filename = pathinfo($image_name,PATHINFO_FILENAME);
@rajucs
rajucs / Redirect Authenticated user after login to custom url in laravel or laravel 6
Created January 21, 2020 05:46
Redirect Authenticated user after login to custom url in laravel or laravel 6
Goto app\http\Middleware\RedirectIfAuthenticated.php
add this function
public function handle($request, Closure $next, $guard = null)
{
if (Auth::guard($guard)->check()) {
return redirect('/admin/dashboard');
}
return $next($request);
Change your datatype for this column problem will be solved
php artisan migrate:db -seed
In DuskServiceProvider.php line 43:
It is unsafe to run Dusk in production.
Maybe this error because you are missing your .env file.
if any you loaded any image just use public_path instead asset.
.woocommerce ul.products li.product {
overflow: hidden;
}
.woocommerce ul.products li.product:hover .button {
-webkit-transform: translatey(0) !important;
transform: translatey(0) !important;
}
.woocommerce ul.products li.product .button {
Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in G:\xampp\htdocs\printingrags\wp-content\plugins\revslider\includes\operations.class.php on line 2854
Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in G:\xampp\htdocs\printingrags\wp-content\plugins\revslider\includes\operations.class.php on line 2858
Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in G:\xampp\htdocs\printingrags\wp-content\plugins\revslider\includes\output.class.php on line 3708
Above warning is for php version conflict check your previous php version and your localhost php version.
I have woodmart theme installed in my wordpress suddently in front page or home page css not loading. I got angry why its happeingin.
THen i tried to fix the problem and finaly found the problem.
THe problem is for Cache plugin installed in my wordpress site.
There is lot of cache plugin the popular plugin is -
1. w3 total cache
2. wp super chache
I installed w3 total cache and activated this. After activate suddently css not working for only frontpage. Then i have to deactivate this pluigin again.