Did you need installation guidelines?

|
2020-04-08 15:09:56
Anybody is there
2020-04-08 15:10:10
Who can help me out with my laravel project
RayhanYulanda 2020-04-08 15:25:53
Which one the best infyom or voyager?
Lalesluc 2020-04-08 15:44:55
hi i have a problem with extended model and the seeder,

this is the code

Thanks in advance

class User extends Model {

protected $fillable = [
‘name’,

}

class Speaker extends User {}

php artisan migrate:refresh –seed

Seeding: SpeakerTableSeeder

<?php

use AppSpeaker;
use IlluminateDatabaseSeeder;

class SpeakerTableSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{

$speaker = new Speaker();
$speaker->name = ‘Speaker’;
$speaker->save();

}
}

Lalesluc 2020-04-08 15:45:03
and this is the error

IlluminateDatabaseQueryException

SQLSTATE[42S22]: Column not found: 1054 Unknown column ‘name’ in ‘field list’ (SQL: insert into speakers (`name`, updated_at, `created_at`) values (Speaker, 2020-04-08 12:36:32, 2020-04-08 12:36:32))

at C:xampphtdocscongressapivendorlaravelframeworksrcIlluminateDatabaseConnection.php:669
665| // If an exception occurs when attempting to run a query, we’ll format the error
666| // message to include the bindings with SQL, which will make this exception a
667| // lot more helpful to the developer instead of just the database’s errors.
668| catch (Exception $e) {
> 669| throw new QueryException(
670| $query, $this->prepareBindings($bindings), $e
671| );
672| }
673|

• A column was not found: You might have forgotten to run your migrations. You can run your migrations using php artisan migrate.
https://laravel.com/docs/master/migrations#running-migrations

1 C:xampphtdocscongressapivendorlaravelframeworksrcIlluminateDatabaseConnection.php:457
PDOException::(“SQLSTATE[42S22]: Column not found: 1054 Unknown column ‘name’ in ‘field list'”)

2 C:xampphtdocscongressapivendorlaravelframeworksrcIlluminateDatabaseConnection.php:457
PDO::prepare(“insert into speakers (`name`, updated_at, `created_at`) values (?, ?, ?)”)

akhil341 2020-04-08 15:50:35
2020-04-08 15:09:51
Hii… I am btech cse student currently I am doing one project of my intern … Which is on laravel

If your are a student and it’s your project my advise is to don’t do it on laravel. Laravel is just spoon feeding, everything will available on its own class files. It’s better if your start from scratch to learn.

2020-04-08 15:59:11
I hv to do it as per the intern rule sir
biraldino 2020-04-08 16:05:43
anyone have a link or tutorial related to Lumen email verification? Verification email is sent when the user registers
akhil341 2020-04-08 18:10:37
2020-04-08 15:59:11
I hv to do it as per the intern rule sir

Please go on with your project when you face any issues come here.

ExpertXL 2020-04-08 18:11:07
ı have need help
ExpertXL 2020-04-08 18:11:15
can anyone help me to laravel setting
akhil341 2020-04-08 18:12:57
ExpertXL 2020-04-08 18:11:15
can anyone help me to laravel setting

did you need installation guidelines ???

2020-04-08 18:12:57
Belongs to, with profiles as pivot.
ExpertXL 2020-04-08 18:13:29
yes but how ı dont understand
2020-04-08 18:16:09
laravel_discuss-32480.jpg
this is my db tables and i want to access to category name from user model through a profile model using a user id
2020-04-08 18:16:27
what the rillation i need to add
2020-04-08 18:48:54
Can anyone give me a hand passing a variable from .env to a mix .scss?
2020-04-08 18:49:29
my .env:
MIX_MIX_SENTRY_DSN_PUBLIC=”${#cccccc}”
2020-04-08 18:49:40
my variable in app.scss:
2020-04-08 18:50:00
$themecolor: process.env.MIX_SENTRY_DSN_PUBLIC;
DesolatorMagno 2020-04-08 19:04:03
Lalesluc 2020-04-08 15:45:03
and this is the error

IlluminateDatabaseQueryException

SQLSTATE[42S22]: Column not found: 1054 Unknown column ‘name’ in ‘field list’ (SQL: insert into speakers (`name`, updated_at, `created_at`) values (Speaker, 2020-04-08 12:36:32, 2020-04-08 12:36:32))

at C:xampphtdocscongressapivendorlaravelframeworksrcIlluminateDatabaseConnection.php:669
665| // If an exception occurs when attempting to run a query, we’ll format the error
666| // message to include the bindings with SQL, which will make this exception a
667| // lot more helpful to the developer instead of just the database’s errors.
668| catch (Exception $e) {
> 669| throw new QueryException(
670| $query, $this->prepareBindings($bindings), $e
671| );
672| }
673|

• A column was not found: You might have forgotten to run your migrations. You can run your migrations using php artisan migrate.
https://laravel.com/docs/master/migrations#running-migrations

1 C:xampphtdocscongressapivendorlaravelframeworksrcIlluminateDatabaseConnection.php:457
PDOException::(“SQLSTATE[42S22]: Column not found: 1054 Unknown column ‘name’ in ‘field list'”)

2 C:xampphtdocscongressapivendorlaravelframeworksrcIlluminateDatabaseConnection.php:457
PDO::prepare(“insert into speakers (`name`, updated_at, `created_at`) values (?, ?, ?)”)

Laravel use the name of the model to guess the table name.

bsaqqa 2020-04-08 19:42:41
Lalesluc 2020-04-08 15:44:55
hi i have a problem with extended model and the seeder,

this is the code

Thanks in advance

class User extends Model {

protected $fillable = [
‘name’,

}

class Speaker extends User {}

php artisan migrate:refresh –seed

Seeding: SpeakerTableSeeder

<?php

use AppSpeaker;
use IlluminateDatabaseSeeder;

class SpeakerTableSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{

$speaker = new Speaker();
$speaker->name = ‘Speaker’;
$speaker->save();

}
}

You must adding in migrations speaker table and don’t do this inherit here..
Or better than that, create relationship between users table with speakers table to be like this:

Users
(id, name, type)

Speakers
(id,user_id,…. More attributes)


And when need user to be speaker just make type of user speaker and add row to speakers table with new speaker data

Relaxed Guy 2020-04-08 20:22:02
Before
Relaxed Guy 2020-04-08 20:22:02
Guys who has used the fast excel package
Lalesluc 2020-04-08 20:25:32
bsaqqa 2020-04-08 19:42:41
You must adding in migrations speaker table and don’t do this inherit here..
Or better than that, create relationship between users table with speakers table to be like this:

Users
(id, name, type)

Speakers
(id,user_id,…. More attributes)


And when need user to be speaker just make type of user speaker and add row to speakers table with new speaker data

Ok i know that but what i wanted to use the extend model properties

DesolatorMagno 2020-04-08 20:30:57
Maybe if you explain better what you wish to do, we can help you.
Lalesluc 2020-04-08 20:31:27
DesolatorMagno 2020-04-08 20:30:57
Maybe if you explain better what you wish to do, we can help you.

I will do IT thanks

Ehsan_hosseiny 2020-04-08 20:33:45
Hello,i want to use fire base to push notification on laravel (token base).how can i use it (confige+ modify db structure + customize notification`s message …)
Relaxed Guy 2020-04-08 20:36:44
M importing an excel sheet reading from t then posting to the api
Relaxed Guy 2020-04-08 20:37:04
M getting an error
Relaxed Guy 2020-04-08 20:37:21
laravel_discuss-32500.jpg

2020-04-08 21:22:03
I have a problem, I am using Query Builder and need to use WITH (NOLOCK) in some of my join tables
2020-04-08 21:22:08
how can I do that?
2020-04-08 21:25:38
$query = DB::table(‘TABLE_1 as alu’)
->join(‘TABLE_2 as candPar’, ‘alu.alu’, ‘=’, ‘candPar.alu’)
->join(‘TABLE_3 AS parc’, ‘parc.id’, ‘=’, ‘candPar.id’)
->join(‘TABLE_4 AS resp’, ‘alu.alu’, ‘=’, ‘resp.alu’)
->join(‘TABLE_5 AS quest’, ‘QUEST.qID’, ‘=’, ‘resp.qID’)
->join(‘TABLE_6 as questao’, ‘questao.idQuestao’, ‘=’, ‘resp.idQuestao’)
->join(‘TABLE_7 as turma’, ‘turma.alu’, ‘=’, ‘alu.alu’)
->leftJoin(‘TABLE_8 as disciplina’, ‘disciplina.qID’, ‘=’, ‘quest.qID’)
->join(‘TABLE_9 as curso’, ‘curso.idcurso’, ‘=’, ‘alu.idcurso’)
->leftJoin(‘TABLE_10 as nota’, function ($join) {
$join->on(‘nota.idQuestao’, ‘=’, ‘resp.idQuestao’)
->on(‘nota.qID’, ‘=’, ‘resp.qID’)
->on(‘nota.alu’, ‘=’, ‘resp.alu’);
2020-04-08 21:27:12
reference error token in console what to do please help
m0lyna 2020-04-08 22:34:06
Hi there,
As you would do the following.

I want to make a link to share and that it correctly counts the clicks with security of not doing multiclick, etc.

m0lyna 2020-04-08 22:34:52
That the same user / ip can do a single click, and all are counted. Although there are 10,000 clicks. According to user traffic.
baya097 2020-04-09 04:13:42
hello every body, i’ve a preoccupation with my laravel test applet; i wrote my code and when i run it the index view don’t show or appear; here are my index view,controller and route
baya097 2020-04-09 04:23:11
laravel_discuss-32516.jpg
the showin error. please don’t even condamed me, we’r new coder. thanks
DesolatorMagno 2020-04-09 04:26:49
can’t you just take a screenshot instead of a photo? there is a Telegram app
baya097 2020-04-09 04:43:41
laravel_discuss-32521.jpg

baya097 2020-04-09 04:43:41
laravel_discuss-32520.jpg

baya097 2020-04-09 04:43:41
laravel_discuss-32519.jpg

baya097 2020-04-09 04:43:41
laravel_discuss-32518.jpg

baya097 2020-04-09 04:43:52
here u r
baya097 2020-04-09 04:52:41
baya097 2020-04-09 04:43:41

please i need u r help

DesolatorMagno 2020-04-09 06:25:23
You are no validating or taking in account the possibility that a user don’t have enterprise.
kilobyte24 2020-04-09 08:02:56
#ask. Mas, saya mau buat button yang fungsinya, ketika btn tersebut di click maka akan mengirim email lgsung. Ada yang tau caranya?
hiteshv253 2020-04-09 08:48:58
DesolatorMagno 2020-04-09 04:26:49
can’t you just take a screenshot instead of a photo? there is a Telegram app

can you try this code.:

$clients = DB::table(‘enterprise’)->get();
@foreach($clients as $client)
{{$client->id}} — {{$client->name}}
@endforeach

hiteshv253 2020-04-09 09:10:20
IT is right or wrong Mc Joanen ??
|