일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 | 29 |
30 | 31 |
- MySQL
- SeLinux
- properties
- Android
- javascript
- JSON
- java
- File
- Linux
- 정규식
- 이클립스
- jquery
- curl
- NetBeans
- php
- input
- junit
- Spring
- 안드로이드
- 리눅스
- tomcat
- html
- error
- 톰캣
- 와일드카드
- DB
- ajax
- larravel
- laravel
- CentOS
- Today
- Total
목록Dev story (24)
합쭈기 programming
소스 올리기 wwwlaravel www 이름 변경 $ mv www old_www 링크 걸기 $ ln -s laravel/public www 결과 laravelold_wwwwww -> laravel/public 참조 https://sir.kr/so_phpframework/106
php artisan cache:clear composer dump-autoload
$list->toSql() collection object를 얻기 전에 builder 클래스에서 확인한다.
storage 권한이 풀려있는 상태이고 controller가 정상적이라면 httpd.conf 에 #LoadModule rewrite_module modules/mod_rewrite.so rewrite 모듈이 포함되어 있지 않을 수 있다. #을 제거하고 restart 하면 정상 동작한다.
/storage 폴더의 권한이 문제이다. 다시 storage에 접근권한을 풀어주면 해결
php artisan serve
phpunit은 vendor/bin 내부에 위치하고 composer.json 파일에서 버전 관리가 가능하다. 아래와 같이 터미널에서 확인 가능하다. phpunit ExampleTest.php
where('code','=','p_')->orWhere('sub_code','=','e_')를 하면 and code = 'p_' or sub_code = 'e_' 이런식에 쿼리문이 되고 where(function($query){ $query->where('code', '=', 'p_') ->orWhere('sub_code', '=', 'e_'); });이렇게 하면 and (code = 'p_' or sub_code = 'e_') 이런 쿼리문이 된다.