I am new to laravel what is base64?

|
biraldino 2020-02-19 15:45:40
skys215 2020-02-19 15:31:59
Not only find for route, find for anything

laravel_discuss-27047.jpg
I found it here. But strange. I don’t feel like using that vendor?

skys215 2020-02-19 15:46:00
sadeqi125 2020-02-19 15:29:33
public function home(){
$sliderdata=mtslidermodel::orderBy(‘sliderid’,’DESC’)->get();
return view(‘mt’,$sliderdata);

}

btw, I assumed that you need pass an array in the seconde argument of view function

sadeqi125 2020-02-19 15:47:24
<?php echo ($i==0)? ‘active’ : ” ?>
sadeqi125 2020-02-19 15:47:34
how can change to laravel
skys215 2020-02-19 15:48:31
@if($i==0) ‘active’ @endif
Roham0010 2020-02-19 15:51:57
sadeqi125 2020-02-19 15:47:24
<?php echo ($i==0)? ‘active’ : ” ?>

Or
{{ $i==0 ? ‘active’ : ” }}

sadeqi125 2020-02-19 15:54:32
this is correct in fore
sadeqi125 2020-02-19 15:54:33
<li>{{$sliderdata[$i]->title}}</li>
sadeqi125 2020-02-19 15:54:55
<li>{{$sliderdata[$i][‘title’]}}</li>
sadeqi125 2020-02-19 15:56:22
this error Undefined variable: sliderdata (View: C:xampphtdocsmovjtecnologyfinalwebsiteresourcesviewsmt.blade.php)
sadeqi125 2020-02-19 15:56:51
this is mycontroller
sadeqi125 2020-02-19 15:56:53
public function home(){
$sliderdata=mtslidermodel::orderBy(‘sliderid’,’DESC’)->get();
return view(‘mt’,$sliderdata);

}

skys215 2020-02-19 15:58:22
sadeqi125 2020-02-19 15:56:53
public function home(){
$sliderdata=mtslidermodel::orderBy(‘sliderid’,’DESC’)->get();
return view(‘mt’,$sliderdata);

}

view(‘mt’,[‘sliderdata’ => $sliderdata]);
or
view(‘mt’,compact(‘sliderdata’));

sadeqi125 2020-02-19 16:00:25
it work thanks
biraldino 2020-02-19 16:08:11
biraldino 2020-02-19 14:55:37
There are no commands defined in the “touye” namespace. {“exception”:”[object] (Symfony\Component\Console\Exception\NamespaceNotFoundException(code: 0): There are no commands defined in the “touye” namespace. at /var/www/html/vendor/symfony/console/Application.php:598)
[stacktrace]

can anyone help this?

skys215 2020-02-19 16:10:23
biraldino 2020-02-19 16:08:11
can anyone help this?

Add var_dump to check where does it come from

Zoppisal 2020-02-19 16:14:23
Guys i am new in laravel, i want to know how to add more fields in registration form like phone number and address entities
skys215 2020-02-19 16:21:19
Zoppisal 2020-02-19 16:14:23
Guys i am new in laravel, i want to know how to add more fields in registration form like phone number and address entities

add a migration
run the migration
edit model file for fillable/guarded
edit controller to support these fields
edit view files to show those fields if necesary

Mr_Classy 2020-02-19 16:35:08
Hello gyzz,
How to insert image in database ?
BigBossCT 2020-02-19 16:52:18
you can convert to base64 and store in a text field
BigBossCT 2020-02-19 16:52:45
in this way the browser doens’t cache it
Mr_Classy 2020-02-19 16:53:08
I am new to laravel what is base64 ?
BigBossCT 2020-02-19 16:53:09
so is not a good way for me.
BigBossCT 2020-02-19 16:53:38
is a textual version of image using gdi or other image library you can convert an image in a textual format
Mr_Classy 2020-02-19 16:53:51
Ok I will try.
BigBossCT 2020-02-19 16:54:15
you can try https://www.base64-image.de/

Base64 Image Encoderwww.base64-image.de
Optimize your images and convert them to base64 online. Drag & Drop your files, copy to clipboard with a click and use the result in HTML and CSS.
BigBossCT 2020-02-19 16:54:48
if you want work with image you can use intervation image
BigBossCT 2020-02-19 16:55:14
is a complete library for managing images
dacrixk 2020-02-19 17:02:37
I have two tables users and user_details I want to implement search. When I use where like it show all data from user and table

For example if result contains user with id 1 then get all data from user_details with id 1

BigBossCT 2020-02-19 17:06:30
you can add ->with(‘user_details’) in your query
BigBossCT 2020-02-19 17:06:55
or join
Jomitz 2020-02-19 17:08:41
Anyone know how to generate access token for api facebook login..please help
BigBossCT 2020-02-19 17:12:51
mmm
BigBossCT 2020-02-19 17:13:00
from developer facebook console
BigBossCT 2020-02-19 17:13:06
in credentials tabs
BigBossCT 2020-02-19 17:13:10
of your app
BigBossCT 2020-02-19 17:13:28
i advise you to use sociallite
amitshha 2020-02-19 18:55:55
laravel_discuss-27091.jpg
str_slug(‘laravel 6.0’)
amitshha 2020-02-19 18:57:30
laravel_discuss-27092.jpg

amitshha 2020-02-19 19:01:30
please help
skys215 2020-02-19 19:13:32
I don’t know what’s the error
dafa_ilyasa 2020-02-19 19:44:00
amitshha 2020-02-19 18:55:55
str_slug(‘laravel 6.0’)

https://stackoverflow.com/questions/57864711/call-to-undefined-function-str-slug-in-laravel-6-0

“Call to undefined function str_slug()” in Laravel 6.0Stack Overflow
I’ve upgraded my laravel 5.8 project to 6.0. It has upgraded successfully but when I’m trying to run the project or installing another package to my project it is giving me error named as “Call to
mohittyagi99 2020-02-19 20:49:46
Everyone is scammer! Just Stay away!
Iyke Anthony 2020-02-19 22:10:28
You are a scammer!!
oxbir 2020-02-20 00:28:28
I have three tables

– categories
– galleries
– category_gallery

I want to create like this site . http://onepage-d7.demo.weebpal.com/#panel-second-wrapper .

GalleryController.php

public function gallery()
{
$galleries = Gallery::whereNotNull(‘image’)->latest()->paginate(25);
$catCommittee = Category::where(‘parent_id’,16)->get();
$categories = Category::where(‘parent_id’, 42)->get();
return view(‘Home.galleries’, compact(‘galleries’,’catCommittee’, ‘categories’));
}

galleries.blade.php

<div class=”container”>
<h2 class=”mt-3 mb-3″>{{ __(‘message.menu.galleries’) }}</h2>
<div class=”row”>
<div class=”container-fluid” style=”margin-top:20px;”>
<div class=”row”>
<ul class=”nav nav-pills mb-3″ id=”pills-tab” role=”tablist”>
@foreach($categories as $category)

<li class=”nav-item”>
<a class=”nav-link” id=”isotope-{{ $category->id }}-tab” data-toggle=”pill” href=”#isotope-{{ $category->id }}” role=”tab” aria-controls=”isotope-{{ $category->id }}” aria-selected=”false”>{{ $category->name }}</a>
</li>
@endforeach
</ul>
</div><hr noshade style=”margin-top:-20px;”>
<div class=”container grid”>
<div class=”tab-content” id=”pills-tabContent”>

@foreach($categories as $key=>$category)
<?php $ok = false;?>
@foreach($category->galleries as $key=>$gallery)
<?php $ok = true;?>
@if(count($category->galleries) == 1 || $key == 0)

<div class=”tab-pane fade” id=”isotope-{{ $gallery->pivot->category_id }}” role=”tabpanel” aria-labelledby=”isotope-{{ $gallery->pivot->category_id }}-tab”>
@endif
<div class=”Portfolio”>
<a href=”#!”>
<img class=”card-img” src=”{{ $gallery->image }}” alt=””>
</a>
<div class=”desc”>{{ $gallery->title }}</div>
</div>
@if(count($category->galleries) == 1 || count($category->galleries) == ++$key)
</div>
@endif
@endforeach
@if(!$ok)
<div class=”tab-pane fade” id=”isotope-{{ $category->id }}” role=”tabpanel” aria-labelledby=”isotope-{{ $category->id }}-tab”></div>
@endif
@endforeach
</div>
</div>
</div>
</div>
</div>

I tried show isotope for my site but I did not successfully.

ajax

<script src=”https://unpkg.com/isotope-layout@3/dist/isotope.pkgd.min.js”></script>
<script>
$(‘.nav-item .nav-link’).trigger(‘click’);
$(‘.nav-item .nav-link’).on(‘click’, function (e) {
e.preventDefault();
var id = $(this).attr(‘id’);

$(document).ready( function() {
$(‘#pills-tabContent’).isotope();
});
})
</script>

Does anyone know why this is? Isotope doesn’t have much support available as their hub is strictly only for bug reports, and as this is probably just my ignorance.

^_* 2020-02-20 01:04:08
laravel_discuss-27102.jpg
whats the problem when install any things
skys215 2020-02-20 06:02:32
^_* 2020-02-20 01:04:08
whats the problem when install any things

I assume it’s network problem

Mahdi_khani 2020-02-20 07:55:59
Hi
Anybody use foxpush api for e-commerce??
khanbozkurt 2020-02-20 09:07:33
Hi all. How are you friends?
Z_Yamin 2020-02-20 09:13:40
khanbozkurt 2020-02-20 09:07:33
Hi all. How are you friends?

hi. fine thanks. and you?

|